IDEMPIERE-555 Tenant user can edit System records when AutoCommit is disabled / thanks to Heng Sin for catching this one
This commit is contained in:
parent
d06198cc41
commit
4c858b8894
|
@ -1707,8 +1707,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
final boolean wasChanged = toolbar.isSaveEnable();
|
final boolean wasChanged = toolbar.isSaveEnable();
|
||||||
IADTabpanel dirtyTabpanel = adTabbox.getDirtyADTabpanel();
|
IADTabpanel dirtyTabpanel = adTabbox.getDirtyADTabpanel();
|
||||||
final boolean newRecord = dirtyTabpanel != null ? (dirtyTabpanel.getGridTab().getRecord_ID() <= 0) : false;
|
final boolean newRecord = dirtyTabpanel != null ? (dirtyTabpanel.getGridTab().getRecord_ID() <= 0) : false;
|
||||||
if (dirtyTabpanel == null)
|
if (dirtyTabpanel == null) {
|
||||||
onSave0(onSaveEvent, onNavigationEvent, newRecord, wasChanged, callback);
|
onSave0(onSaveEvent, onNavigationEvent, newRecord, wasChanged, callback);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (dirtyTabpanel instanceof ADSortTab)
|
if (dirtyTabpanel instanceof ADSortTab)
|
||||||
{
|
{
|
||||||
ADSortTab sortTab = (ADSortTab) dirtyTabpanel;
|
ADSortTab sortTab = (ADSortTab) dirtyTabpanel;
|
||||||
|
|
Loading…
Reference in New Issue