related to bug 32780: wrong values displayed in status bar on record creation
authorAsier Lostalé <asier.lostale@openbravo.com>
Tue, 26 Apr 2016 10:50:48 +0200
changeset 28858 ebfbe10490c0
parent 28857 1e91230e2f49
child 28859 29fa7f43f9da
related to bug 32780: wrong values displayed in status bar on record creation

When a new record is created just after processing a previous one, status bar
displayed valued of the previous record instead of being in New mode.

Fixed by forcing status bar reset on FIC response for NEW.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Thu Apr 21 22:37:15 2016 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Tue Apr 26 10:50:48 2016 +0200
@@ -949,6 +949,8 @@
     if (request.params.MODE === 'EDIT') {
       this.view.statusBar.mode = 'VIEW';
       this.view.statusBar.setContentLabel(null, null, this.getStatusBarFields());
+    } else if (modeIsNew) {
+      this.view.statusBar.setNewState(true);
     }
 
     if (this.callSaveAfterFICReturn) {