From 7909d73769b8221a2a5c8b5be78f1ccbf7c72a71 Mon Sep 17 00:00:00 2001 From: Richard Morales Date: Thu, 13 Jun 2013 18:28:52 -0500 Subject: [PATCH] IDEMPIERE-1048 Sort tab lists not updated when master record change --- .../src/org/adempiere/webui/adwindow/CompositeADTabbox.java | 2 ++ .../WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java index e8a283b252..05c260819c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java @@ -687,6 +687,8 @@ public class CompositeADTabbox extends AbstractADTabbox IADTabpanel detailPanel = getSelectedDetailADTabpanel(); if (detailPanel != null) { detailPanel.getGridTab().dataIgnore(); + if (detailPanel.getGridTab().isSortTab()) + detailPanel.activate(true); } headerTab.getGridTab().dataIgnore(); } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java index a09a61d695..18354c05ab 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/DetailPane.java @@ -532,7 +532,7 @@ public class DetailPane extends Panel implements EventListener, IdSpace { Toolbar toolbar = (Toolbar) tabpanel.getFirstChild(); IADTabpanel adtab = getADTabpanel(index); - if (adtab.getGridTab().isSortTab()) + if (adtab!=null && adtab.getGridTab().isSortTab()) readOnly = true; boolean insertRecord = !readOnly;