details:   https://code.openbravo.com/erp/devel/pi/rev/bae408009379
changeset: 23421:bae408009379
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Mon Jun 02 17:38:18 2014 +0530
summary:   Related to Issue 0026723 : Clears javascript console error

transformData is called only when the target contains the method.

details:   https://code.openbravo.com/erp/devel/pi/rev/9cae3dd75063
changeset: 23422:9cae3dd75063
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Mon Jun 02 17:40:04 2014 +0530
summary:   Fixes Issue 26723: Force server fetch when filtering characteristics 
fields.

Cleared allRows along with localData to force fetch from server
whenever product characteristic filter data is changed.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
 |  1 +
 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
              |  5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 7a230ede47d9 -r 9cae3dd75063 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
     Mon Jun 02 14:15:41 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
     Mon Jun 02 17:40:04 2014 +0530
@@ -501,6 +501,7 @@
     // See issue #24750
     if (this.grid.parentElement.data) {
       this.grid.parentElement.data.localData = null;
+      this.grid.parentElement.data.allRows = null;
     }
 
     this.internalValue = value;
diff -r 7a230ede47d9 -r 9cae3dd75063 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- 
a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Mon Jun 02 14:15:41 2014 +0200
+++ 
b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Mon Jun 02 17:40:04 2014 +0530
@@ -116,7 +116,10 @@
   dataArrived: function (parentNode) {
     var children = this.getChildren(parentNode),
         target = window[this.componentId];
-    target.transformData(children);
+    if (target.transformData) {
+      target.transformData(children);
+    }
+    this.Super('dataArrived', arguments);
   }
 });
 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to