IDEMPIERE-5238 Fix checkRecordIDCrossTenant failing in multi-key table (#1821)
This commit is contained in:
parent
31779a7611
commit
969a2e66df
|
@ -5709,6 +5709,8 @@ public abstract class PO
|
||||||
if (tableId <= 0)
|
if (tableId <= 0)
|
||||||
return;
|
return;
|
||||||
MTable ft = MTable.get(getCtx(), tableId);
|
MTable ft = MTable.get(getCtx(), tableId);
|
||||||
|
if (ft.getKeyColumns().length > 1)
|
||||||
|
return; // multi-key-table
|
||||||
boolean systemAccess = false;
|
boolean systemAccess = false;
|
||||||
String accessLevel = ft.getAccessLevel();
|
String accessLevel = ft.getAccessLevel();
|
||||||
if ( MTable.ACCESSLEVEL_All.equals(accessLevel)
|
if ( MTable.ACCESSLEVEL_All.equals(accessLevel)
|
||||||
|
|
|
@ -104,7 +104,8 @@ public class GenericPOElementHandler extends AbstractElementHandler {
|
||||||
element.recordId = po.get_ID();
|
element.recordId = po.get_ID();
|
||||||
|
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, po.get_TableName(), po.get_Table_ID());
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, po.get_TableName(), po.get_Table_ID());
|
||||||
logImportDetail(ctx, impDetail, 1, po.toString(), element.recordId, action);
|
boolean isMultiKey = po.get_KeyColumns().length > 1;
|
||||||
|
logImportDetail(ctx, impDetail, 1, po.toString(), isMultiKey ? 0 : element.recordId, action);
|
||||||
|
|
||||||
if ( I_AD_Window.Table_Name.equals(tableName)
|
if ( I_AD_Window.Table_Name.equals(tableName)
|
||||||
|| I_AD_Process.Table_Name.equals(tableName)
|
|| I_AD_Process.Table_Name.equals(tableName)
|
||||||
|
|
Loading…
Reference in New Issue