IDEMPIERE-4171 DB message on delete is lost

This commit is contained in:
Carlos Ruiz 2020-02-12 18:27:08 +01:00
parent 7173b78f68
commit ea70caa08a
2 changed files with 4 additions and 2 deletions

View File

@ -3432,7 +3432,7 @@ public class GridTable extends AbstractTableModel
e.setInfo(AD_Message, info, isError, !isError);
}
if (isError)
log.saveWarning(AD_Message, info);
log.saveError(AD_Message, info);
fireDataStatusChanged (e);
} // fireDataStatusEvent

View File

@ -2462,9 +2462,11 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
if (result)
{
//error will be catch in the dataStatusChanged event
adTabbox.getSelectedGridTab().dataDelete();
boolean success = adTabbox.getSelectedGridTab().dataDelete();
adTabbox.getSelectedGridTab().dataRefreshAll(true, true);
adTabbox.getSelectedGridTab().refreshParentTabs();
if (!success)
showLastError();
adTabbox.getSelectedTabpanel().dynamicDisplay(0);
focusToActivePanel();