Skip to content
Snippets Groups Projects
Commit 858451d1 authored by Demian Katz's avatar Demian Katz
Browse files

Code simplification.

parent 971f4dfb
No related merge requests found
...@@ -151,11 +151,9 @@ class JSTree extends AbstractBase ...@@ -151,11 +151,9 @@ class JSTree extends AbstractBase
{ {
if (!empty($context) && !empty($mode)) { if (!empty($context) && !empty($mode)) {
if ($mode == 'List') { if ($mode == 'List') {
$fields = $this->recordDriver->getRawData();
array_push($fields['hierarchy_parent_id'], $fields['hierarchy_top_id'][0]);
return $this->jsonToHTML( return $this->jsonToHTML(
json_decode($this->getJSON($hierarchyID, $context)), json_decode($this->getJSON($hierarchyID, $context)),
$fields['id'] $this->recordDriver->getUniqueId()
); );
} else { } else {
return $this->transformCollectionXML( return $this->transformCollectionXML(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment