details:   https://code.openbravo.com/erp/devel/pi/rev/85e841d3fc26
changeset: 15080:85e841d3fc26
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed Jan 04 21:26:24 2012 +0100
summary:   Fixes issue 19415: onChangeFunctions doesn't change grid values

diffstat:

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

diffs (35 lines):

diff -r 7912f8d220f0 -r 85e841d3fc26 
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 Jan 04 15:02:23 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Jan 04 21:26:24 2012 +0100
@@ -1075,8 +1075,12 @@
       return;
     }
 
+    if (this.grid) {
+      this.grid.setEditValue(this.grid.getEditRow(), item.name, value); 
+    }
+    
     this.setValue(item, value);
-
+    
     // fire any new callouts
     if (this.view) {
       view = this.view;
@@ -1085,7 +1089,7 @@
     }
 
     if (view && OB.OnChangeRegistry.hasOnChange(view.tabId, item)) {
-      OB.OnChangeRegistry.call(view.tabId, item, view, view.viewForm, 
view.viewGrid);
+      OB.OnChangeRegistry.call(view.tabId, item, view, this, view.viewGrid);
     }
   },
   
@@ -1110,7 +1114,7 @@
       }
 
       if (view && OB.OnChangeRegistry.hasOnChange(view.tabId, item)) {
-        OB.OnChangeRegistry.call(view.tabId, item, view, view.viewForm, 
view.viewGrid);
+        OB.OnChangeRegistry.call(view.tabId, item, view, this, view.viewGrid);
       } else {
         // call the classic callout if there
         length = this.dynamicCols.length;

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to