details: https://code.openbravo.com/erp/devel/pi/rev/15994dc74cd8
changeset: 22705:15994dc74cd8
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Thu Mar 13 15:32:33 2014 +0100
summary: Fixes issue 25935: JS Error when opening TreeGrid selector
A function was being executed on the tree grid data before it was properly
initialized.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
| 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 2ac8f9165769 -r 15994dc74cd8
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
Thu Mar 13 13:47:53 2014 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
Thu Mar 13 15:32:33 2014 +0100
@@ -129,7 +129,10 @@
},
handleFilterEditorSubmit: function (criteria, context, callback) {
- this.setOpenState('[]');
+ if (isc.isA.Tree(this.data)) {
+ // Only reset the open state if the tree already has data
+ this.setOpenState('[]');
+ }
this.Super('handleFilterEditorSubmit', 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/13534_NeoTech
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits