IDEMPIERE-1048 Sort tab lists not updated when master record change

This commit is contained in:
Richard Morales 2013-06-13 18:28:52 -05:00
parent 97333fc7e3
commit 7909d73769
2 changed files with 3 additions and 1 deletions

View File

@ -687,6 +687,8 @@ public class CompositeADTabbox extends AbstractADTabbox
IADTabpanel detailPanel = getSelectedDetailADTabpanel(); IADTabpanel detailPanel = getSelectedDetailADTabpanel();
if (detailPanel != null) { if (detailPanel != null) {
detailPanel.getGridTab().dataIgnore(); detailPanel.getGridTab().dataIgnore();
if (detailPanel.getGridTab().isSortTab())
detailPanel.activate(true);
} }
headerTab.getGridTab().dataIgnore(); headerTab.getGridTab().dataIgnore();
} }

View File

@ -532,7 +532,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
Toolbar toolbar = (Toolbar) tabpanel.getFirstChild(); Toolbar toolbar = (Toolbar) tabpanel.getFirstChild();
IADTabpanel adtab = getADTabpanel(index); IADTabpanel adtab = getADTabpanel(index);
if (adtab.getGridTab().isSortTab()) if (adtab!=null && adtab.getGridTab().isSortTab())
readOnly = true; readOnly = true;
boolean insertRecord = !readOnly; boolean insertRecord = !readOnly;