previous commit is bad, should only call onSave(true) if invoke from the save toolbar button or user press the save shortcut
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2979823
This commit is contained in:
parent
900f6b3677
commit
26ae5bf924
|
@ -795,7 +795,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
|
|
||||||
if (gridWindow.isTransaction())
|
if (gridWindow.isTransaction())
|
||||||
{
|
{
|
||||||
if (curTab.needSave(true, true) && !onSave(true))
|
if (curTab.needSave(true, true) && !onSave(false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
WOnlyCurrentDays ocd = new WOnlyCurrentDays();
|
WOnlyCurrentDays ocd = new WOnlyCurrentDays();
|
||||||
|
@ -1308,7 +1308,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
{ // do we have real change
|
{ // do we have real change
|
||||||
if (curTab.needSave(true, true))
|
if (curTab.needSave(true, true))
|
||||||
{
|
{
|
||||||
if (!onSave(true))
|
if (!onSave(false))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1360,7 +1360,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
if (curTab == null)
|
if (curTab == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!onSave(true))
|
if (!onSave(false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Gets Fields from AD_Field_v
|
// Gets Fields from AD_Field_v
|
||||||
|
@ -1442,6 +1442,9 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
{
|
{
|
||||||
showLastError();
|
showLastError();
|
||||||
return false;
|
return false;
|
||||||
|
} else if (!onSaveEvent) //need manual refresh
|
||||||
|
{
|
||||||
|
curTab.setCurrentRow(curTab.getCurrentRow());
|
||||||
}
|
}
|
||||||
curTabpanel.dynamicDisplay(0);
|
curTabpanel.dynamicDisplay(0);
|
||||||
curTabpanel.afterSave(onSaveEvent);
|
curTabpanel.afterSave(onSaveEvent);
|
||||||
|
@ -1641,7 +1644,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!onSave(true))
|
if (!onSave(false))
|
||||||
return;
|
return;
|
||||||
//
|
//
|
||||||
int table_ID = curTab.getAD_Table_ID();
|
int table_ID = curTab.getAD_Table_ID();
|
||||||
|
@ -1670,7 +1673,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!onSave(true))
|
if (!onSave(false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Query
|
// Query
|
||||||
|
@ -1835,7 +1838,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
|
|
||||||
if (curTab.needSave(true, false))
|
if (curTab.needSave(true, false))
|
||||||
{
|
{
|
||||||
if (!onSave(true))
|
if (!onSave(false))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2011,7 +2014,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
|
|
||||||
if (curTab.needSave(true, false))
|
if (curTab.needSave(true, false))
|
||||||
{
|
{
|
||||||
if (!onSave(true))
|
if (!onSave(false))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue