From 4c858b8894c92e4f4714de2952bab3ce1a82855c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 16 Jan 2013 08:20:37 -0800 Subject: [PATCH] IDEMPIERE-555 Tenant user can edit System records when AutoCommit is disabled / thanks to Heng Sin for catching this one --- .../org/adempiere/webui/adwindow/AbstractADWindowContent.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index e320af38ec..d431865ae6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -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;