IDEMPIERE-5407 - Fix Wrong getIdColumnName Validation (#1893)
* IDEMPIERE-5407 - Fix Wrong getIdColumnName Validation * IDEMPIERE-5407 - patch by Carlos
This commit is contained in:
parent
632352c1cb
commit
f0c87202b4
|
@ -968,7 +968,7 @@ public final class MRole extends X_AD_Role implements ImmutablePOSupport
|
||||||
MTable table = MTable.get(getCtx(), tableName);
|
MTable table = MTable.get(getCtx(), tableName);
|
||||||
if (table == null)
|
if (table == null)
|
||||||
return false;
|
return false;
|
||||||
return MTable.get(getCtx(), tableName).isView();
|
return table.isView();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getIdColumnName(String tableName)
|
private String getIdColumnName(String tableName)
|
||||||
|
@ -977,7 +977,7 @@ public final class MRole extends X_AD_Role implements ImmutablePOSupport
|
||||||
MTable table = MTable.get(getCtx(), tableName);
|
MTable table = MTable.get(getCtx(), tableName);
|
||||||
if (table == null)
|
if (table == null)
|
||||||
return null;
|
return null;
|
||||||
if (MTable.get(getCtx(), tableName).columnExists(colkey.toString()))
|
if (table.getColumnIndex(colkey.toString()) >= 0)
|
||||||
return colkey.toString();
|
return colkey.toString();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue