IDEMPIERE-5566 Cross tenant PO writing on AD_System (#1663)

This commit is contained in:
Carlos Ruiz 2023-02-08 08:42:32 +01:00 committed by GitHub
parent e6c53e9e32
commit 8ff1068184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -76,7 +76,12 @@ public class MSystem extends X_AD_System
// //
if (!Ini.isClient() && system.setInfo()) if (!Ini.isClient() && system.setInfo())
{ {
system.saveEx(); try {
PO.setCrossTenantSafe();
system.saveEx();
} finally {
PO.clearCrossTenantSafe();
}
} }
s_system.put(0, new MSystem(Env.getCtx(), system)); s_system.put(0, new MSystem(Env.getCtx(), system));
return system; return system;