IDEMPIERE-127 Implement Recent Items dashboard

http://jira.idempiere.com/browse/IDEMPIERE-127
error trying to save when no new record saved (as pushing find on an empty new record)
This commit is contained in:
Carlos Ruiz 2012-02-03 20:11:31 -05:00
parent 47ec4aa29b
commit 714e17635b
1 changed files with 16 additions and 14 deletions

View File

@ -1564,6 +1564,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
if (wasChanged) { if (wasChanged) {
if (newRecord) { if (newRecord) {
if (curTab.getRecord_ID() > 0) {
if (curTabIndex == 0) { if (curTabIndex == 0) {
MRecentItem.addModifiedField(ctx, curTab.getAD_Table_ID(), MRecentItem.addModifiedField(ctx, curTab.getAD_Table_ID(),
curTab.getRecord_ID(), Env.getAD_User_ID(ctx), curTab.getRecord_ID(), Env.getAD_User_ID(ctx),
@ -1579,6 +1580,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
mainTab.getAD_Tab_ID()); mainTab.getAD_Tab_ID());
} }
} }
}
} else { } else {
if (curTabIndex == 0) { if (curTabIndex == 0) {
MRecentItem.touchUpdatedRecord(ctx, curTab.getAD_Table_ID(), MRecentItem.touchUpdatedRecord(ctx, curTab.getAD_Table_ID(),