IDEMPIERE-5212 Cross tenant PO writing in MFAUnregister #resolve #fixversion 10 #comment Solve Cross tenant PO (#1209)
This commit is contained in:
parent
b1d1ac2bba
commit
72ee50fcf5
|
@ -31,6 +31,7 @@ import java.sql.Timestamp;
|
|||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.model.MMFARegistration;
|
||||
import org.compiere.model.PO;
|
||||
|
||||
/**
|
||||
* IDEMPIERE-4782
|
||||
|
@ -68,7 +69,12 @@ public class MFAUnregister extends SvrProcess {
|
|||
MMFARegistration reg = new MMFARegistration(getCtx(), p_MFA_Registration_ID, get_TrxName());
|
||||
reg.setIsActive(false);
|
||||
reg.setMFAUnregisteredAt(new Timestamp(System.currentTimeMillis()));
|
||||
reg.saveEx();
|
||||
try {
|
||||
PO.setCrossTenantSafe();
|
||||
reg.saveEx();
|
||||
} finally {
|
||||
PO.clearCrossTenantSafe();
|
||||
}
|
||||
|
||||
return "@OK@";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue