BF [ 1979213 ] VLookup.getDirectAccessSQL issue

This commit is contained in:
teo_sarca 2008-06-02 19:41:33 +00:00
parent 230073b2d8
commit a887f3b54d
1 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ import org.eevolution.model.MPPProductBOMLine;
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
* <li>BF [ 1740835 ] NPE when closing a window
* <li>BF [ 1817768 ] Isolate hardcoded table direct columns
* <li>BF [ 1979213 ] VLookup.getDirectAccessSQL issue
* @author Michael Judd (MultiSelect)
*/
public class VLookup extends JComponent
@ -1224,7 +1225,7 @@ public class VLookup extends JComponent
//
StringBuffer retValue = new StringBuffer ("SELECT ")
.append(m_columnName).append(" FROM ").append(m_tableName)
.append(" WHERE ").append(sql)
.append(" WHERE (").append(sql).append(")")
.append(" AND IsActive='Y'");
String wc = getWhereClause();
if (wc != null && wc.length() > 0)