details:   https://code.openbravo.com/erp/devel/pi/rev/c65d16d31cfd
changeset: 14029:c65d16d31cfd
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Wed Oct 19 18:11:00 2011 +0200
summary:   Fixed issue 18696. HiddenInputs will be reset every time you switch 
record, or create a new record

diffstat:

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

diffs (16 lines):

diff -r f2c99aeb7f18 -r c65d16d31cfd 
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
     Wed Oct 19 12:46:38 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Oct 19 18:11:00 2011 +0200
@@ -660,7 +660,11 @@
       }
     }
     
-    if(retHiddenInputs) {
+    if(modeIsNew || request.params.MODE === 'EDIT'){
+      //If a new record is created, or an existing one is opened,
+      //the existing hiddenInputs (which correspond to a different record) 
should be deleted
+      this.hiddenInputs={};
+    }else if(retHiddenInputs) {
       for(prop in retHiddenInputs) {
         if(retHiddenInputs.hasOwnProperty(prop)){
           this.hiddenInputs[prop] = retHiddenInputs[prop];

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to