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,7 +107,8 @@ public class CompositeADTabbox extends AbstractADTabbox
public void onCallback(Boolean result) {
if (result) {
onEditDetail(row);
adWindowPanel.onNew();
if (!adWindowPanel.getActiveGridTab().isNew())
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())
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) {