[Tree Extension] ADTreeDatasource returns all properties
authorAugusto Mauch <augusto.mauch@openbravo.com>
Thu, 20 Feb 2014 18:28:27 +0100
changeset 22526 9d652e0aa1f3
parent 22525 3d2d76d855a6
child 22527 c9de7eb81bcd
[Tree Extension] ADTreeDatasource returns all properties
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java
--- a/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java	Thu Feb 20 18:19:06 2014 +0100
+++ b/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java	Thu Feb 20 18:28:27 2014 +0100
@@ -298,9 +298,6 @@
         value.put("seqno", node[SEQNO]);
         value.put("_hasChildren",
             (this.nodeHasChildren(entity, (String) node[NODE_ID], hqlWhereClause)) ? true : false);
-        for (int i = 0; i < selectedProperties.length(); i++) {
-          value.put(selectedProperties.getString(i), bob.get(selectedProperties.getString(i)));
-        }
       } catch (JSONException e) {
         logger.error("Error while constructing JSON reponse", e);
       }