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:
Carlos Ruiz 2013-01-16 08:20:37 -08:00
parent d06198cc41
commit 4c858b8894
1 changed files with 3 additions and 1 deletions

View File

@ -1707,8 +1707,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
final boolean wasChanged = toolbar.isSaveEnable();
IADTabpanel dirtyTabpanel = adTabbox.getDirtyADTabpanel();
final boolean newRecord = dirtyTabpanel != null ? (dirtyTabpanel.getGridTab().getRecord_ID() <= 0) : false;
if (dirtyTabpanel == null)
if (dirtyTabpanel == null) {
onSave0(onSaveEvent, onNavigationEvent, newRecord, wasChanged, callback);
return;
}
if (dirtyTabpanel instanceof ADSortTab)
{
ADSortTab sortTab = (ADSortTab) dirtyTabpanel;