[Tree Extension] Refreshing the tree grid did not work
authorAugusto Mauch <augusto.mauch@openbravo.com>
Thu, 27 Feb 2014 13:25:38 +0100
changeset 22575 6eef08fce201
parent 22574 e8b7d5b7288e
child 22576 726a781ac72b
[Tree Extension] Refreshing the tree grid did not work
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Thu Feb 27 12:27:32 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Thu Feb 27 13:25:38 2014 +0100
@@ -1693,6 +1693,7 @@
     }
     if (!this.isShowingForm) {
       if (this.isShowingTree) {
+        this.treeGrid.setData([]);
         this.treeGrid.refreshGrid(refreshCallback);
       } else {
         this.viewGrid.refreshGrid(refreshCallback, newRecordsToBeIncluded);