IDEMPIERE-5940 Move/Copy Client failing when there are tables without AD_Client_ID (#2117)
This commit is contained in:
parent
d4f5aabe64
commit
e9e2239d0c
|
@ -454,6 +454,10 @@ public class MoveClient extends SvrProcess {
|
||||||
sqlCountData.append(" JOIN AD_PInstance ON (AD_PInstance_Log.AD_PInstance_ID=AD_PInstance.AD_PInstance_ID)");
|
sqlCountData.append(" JOIN AD_PInstance ON (AD_PInstance_Log.AD_PInstance_ID=AD_PInstance.AD_PInstance_ID)");
|
||||||
sqlCountData.append(" JOIN AD_Client ON (AD_PInstance.AD_Client_ID=AD_Client.AD_Client_ID)");
|
sqlCountData.append(" JOIN AD_Client ON (AD_PInstance.AD_Client_ID=AD_Client.AD_Client_ID)");
|
||||||
} else {
|
} else {
|
||||||
|
if (MColumn.get(getCtx(), tableName, "AD_Client_ID") == null) {
|
||||||
|
if (log.isLoggable(Level.WARNING)) log.warning("Ignoring " + tableName + ", doesn't have column AD_Client_ID");
|
||||||
|
return;
|
||||||
|
}
|
||||||
sqlCountData.append(" JOIN AD_Client ON (").append(tableName).append(".AD_Client_ID=AD_Client.AD_Client_ID)");
|
sqlCountData.append(" JOIN AD_Client ON (").append(tableName).append(".AD_Client_ID=AD_Client.AD_Client_ID)");
|
||||||
}
|
}
|
||||||
sqlCountData.append(" WHERE ").append(p_whereClient);
|
sqlCountData.append(" WHERE ").append(p_whereClient);
|
||||||
|
|
Loading…
Reference in New Issue