IDEMPIERE-6202 Field status that applied to new record is applied to the existing a record too in a specific operation at Window (#2430)
This commit is contained in:
parent
61229b3277
commit
86c7e2d026
|
|
@ -1597,6 +1597,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
public void saveAndNavigate(final Callback<Boolean> callback) {
|
||||
if (adTabbox != null)
|
||||
{
|
||||
boolean newrecod = adTabbox.getSelectedGridTab().isNew();
|
||||
if (adTabbox.isSortTab())
|
||||
{
|
||||
onSave(false, true, callback);
|
||||
|
|
@ -1611,12 +1612,16 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
{
|
||||
// new record, but nothing changed
|
||||
adTabbox.dataIgnore();
|
||||
if (newrecod)
|
||||
onRefresh(true, false);
|
||||
callback.onCallback(true);
|
||||
}
|
||||
} // there is a change
|
||||
else {
|
||||
// just in case
|
||||
adTabbox.dataIgnore();
|
||||
if (newrecod)
|
||||
onRefresh(true, false);
|
||||
callback.onCallback(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue