Fixes issue
18434: Date field is not working fine: Expense sheet window
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js Mon Sep 05 19:31:38 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js Mon Sep 05 19:33:03 2011 +0200
@@ -190,7 +190,7 @@
buttonType: 'undo',
prompt: OB.I18N.getLabel('OBUIAPP_CancelEdit'),
updateState: function() {
- this.setDisabled(!this.view.viewGrid.hasErrors() && !this.view.viewForm.hasChanged && !this.view.viewGrid.hasChanges());
+ this.setDisabled(!this.view.viewGrid.hasErrors() && !this.view.viewForm.hasChanged && !this.view.viewGrid.hasChanges(false));
},
keyboardShortcutId: 'ToolBar_Undo'
},