IDEMPIERE-369 Master Detail layout improvements. Don't refresh detail if user is editing a new detail record and want to maximize it.

This commit is contained in:
Heng Sin Low 2013-02-05 11:03:42 +08:00
parent 6da6e1c926
commit 3133da1aa0
1 changed files with 3 additions and 1 deletions

View File

@ -1075,7 +1075,9 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
};
Object value = Executions.getCurrent().getAttribute(CompositeADTabbox.AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE);
if (value != null && value == adTabbox.getSelectedDetailADTabpanel()
&& adTabbox.getDirtyADTabpanel() == adTabbox.getSelectedDetailADTabpanel()) {
&& (adTabbox.getDirtyADTabpanel() == adTabbox.getSelectedDetailADTabpanel()
|| (adTabbox.getDirtyADTabpanel() == null
&& adTabbox.getSelectedDetailADTabpanel().getGridTab().isNew()))) {
command.onCallback(true);
} else {
saveAndNavigate(command);