Fixed wrong number of parameters for sql statement.
This commit is contained in:
parent
c6eeb2c76e
commit
02e4d1846a
|
@ -137,7 +137,7 @@ public class IDFinder {
|
|||
.append(tableNameMaster)
|
||||
.append(" WHERE Name = ? AND AD_Client_ID IN (0, ?) ")
|
||||
.append("ORDER BY AD_Client_ID Desc");
|
||||
int parentId = DB.getSQLValue(trxName, parentSql.toString(), Env.getAD_Client_ID(Env.getCtx()));
|
||||
int parentId = DB.getSQLValue(trxName, parentSql.toString(), name, Env.getAD_Client_ID(Env.getCtx()));
|
||||
|
||||
if (parentId > 0) {
|
||||
StringBuffer sqlB = new StringBuffer ("SELECT ")
|
||||
|
|
Loading…
Reference in New Issue