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

Merge pull request #324 from EreMaijala/jstree-fix

Check in hierarchy tree renderer that the hierarchy title exists in the ...
parents 53c98814 7b50bde0
No related merge requests found
...@@ -92,7 +92,8 @@ class JSTree extends AbstractBase ...@@ -92,7 +92,8 @@ class JSTree extends AbstractBase
$hierarchies = []; $hierarchies = [];
foreach ($inHierarchies as $hierarchyTopID) { foreach ($inHierarchies as $hierarchyTopID) {
if ($this->getDataSource()->supports($hierarchyTopID)) { if ($this->getDataSource()->supports($hierarchyTopID)) {
$hierarchies[$hierarchyTopID] = $inHierarchiesTitle[$i]; $hierarchies[$hierarchyTopID] = isset($inHierarchiesTitle[$i])
? $inHierarchiesTitle[$i] : '';
} }
$i++; $i++;
} }
......
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