diff options
author | Stanislav-Wolski <stan@dhtmlx.com> | 2012-03-26 16:23:00 +0300 |
---|---|---|
committer | Stanislav-Wolski <stan@dhtmlx.com> | 2012-03-26 16:23:00 +0300 |
commit | 98542f4bab255fc1ec846c7e22688bf1d55aa716 (patch) | |
tree | 370e70f086fb35f72335e7623f7e71c981f146c9 /codebase/data_connector.php | |
parent | 279209c3bf193a73eff49b34a1208b1698f2d7e0 (diff) | |
download | connector-php-98542f4bab255fc1ec846c7e22688bf1d55aa716.zip connector-php-98542f4bab255fc1ec846c7e22688bf1d55aa716.tar.gz connector-php-98542f4bab255fc1ec846c7e22688bf1d55aa716.tar.bz2 |
[fix] dhx_kids flag not generated for json tree
Diffstat (limited to 'codebase/data_connector.php')
-rw-r--r-- | codebase/data_connector.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codebase/data_connector.php b/codebase/data_connector.php index 2789224..08ae891 100644 --- a/codebase/data_connector.php +++ b/codebase/data_connector.php @@ -174,7 +174,7 @@ class JSONCommonDataItem extends DataItem{ } class TreeCommonDataItem extends CommonDataItem{ - private $kids=-1; + protected $kids=-1; function to_xml_start(){ $str="<item id='".$this->get_id()."' "; @@ -329,6 +329,7 @@ class JSONTreeCommonDataItem extends TreeCommonDataItem{ $extra = $this->config->text[$i]["name"]; $data[$extra]=$this->data[$extra]; } + if ($this->kids === true) $data["dhx_kids"] = 1; |