IDEMPIERE-520 - Master Detail Bugs found using production window

This commit is contained in:
Heng Sin Low 2012-12-14 16:35:37 +08:00
parent 83631f7277
commit fa2b6fa861
2 changed files with 6 additions and 2 deletions

View File

@ -107,6 +107,7 @@ public class CompositeADTabbox extends AbstractADTabbox
public void onCallback(Boolean result) { public void onCallback(Boolean result) {
if (result) { if (result) {
onEditDetail(row); onEditDetail(row);
if (!adWindowPanel.getActiveGridTab().isNew())
adWindowPanel.onNew(); adWindowPanel.onNew();
} }
} }

View File

@ -531,7 +531,10 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
if (i < 0 || tabbox.getTabs() == null || i >= tabbox.getTabs().getChildren().size()) if (i < 0 || tabbox.getTabs() == null || i >= tabbox.getTabs().getChildren().size())
return; return;
tabbox.getTabs().getChildren().get(i).setVisible(visible); Tab tab = (Tab) tabbox.getTabs().getChildren().get(i);
tab.setVisible(visible);
if (tab.getLinkedPanel() != null)
tab.getLinkedPanel().setVisible(visible);
} }
public boolean isTabVisible(int i) { public boolean isTabVisible(int i) {