details:   /erp/devel/pi/rev/127a6fed9e9e
changeset: 12258:127a6fed9e9e
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Fri May 20 04:00:24 2011 +1100
summary:   Fixes issue 16644: Edit status disappears after undo/cancel

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
 |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5c1f2b2560f0 -r 127a6fed9e9e 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Fri May 20 03:37:45 2011 +1100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Fri May 20 04:00:24 2011 +1100
@@ -960,8 +960,12 @@
     this.view.messageBar.hide();
     this.resetValues();
     this.setHasChanged(false);
-    this.view.statusBar.mode = 'VIEW';
-    this.view.statusBar.setContentLabel(null, null, this.getStatusBarFields());
+    if (this.isNew) {
+      this.setNewState(this.isNew);
+    } else {
+      this.view.statusBar.mode = 'VIEW';
+      this.view.statusBar.setContentLabel(null, null, 
this.getStatusBarFields());      
+    }
     this.view.toolBar.updateButtonState(true);
   },
   

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to