IDEMPIERE-5238 Record_ID editor (#1705)

- fixes for the new cross-tenant validation
This commit is contained in:
Carlos Ruiz 2023-03-09 03:16:25 +01:00 committed by GitHub
parent 3c9c67ea51
commit fe72b671ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -662,7 +662,7 @@ public abstract class Doc
String AD_MessageValue = "PostingError-" + p_Status;
int AD_User_ID = p_po.getUpdatedBy();
MNote note = new MNote (getCtx(), AD_MessageValue, AD_User_ID,
getAD_Client_ID(), getAD_Org_ID(), null);
getAD_Client_ID(), getAD_Org_ID(), p_po.get_TrxName());
note.setRecord(p_po.get_Table_ID(), p_po.get_ID());
// Reference
note.setReference(toString()); // Document

View File

@ -68,7 +68,7 @@ public abstract class AbstractElementHandler implements ElementHandler {
impDetail.setType(type);
impDetail.setName("");
impDetail.setAction("");
impDetail.setRecord_ID(1);
impDetail.setRecord_ID(0);
impDetail.setTableName(tableName);
impDetail.setAD_Table_ID(tableId);
impDetail.saveEx(getTrxName(ctx));