Skip to content
Snippets Groups Projects
Commit 3f9c80a5 authored by Dorian Merz's avatar Dorian Merz Committed by Robert Lange
Browse files

refs #15982 [finc] JS Tree Renderer: fix undefined variable error for empty options

parent 4a37f147
No related merge requests found
...@@ -99,7 +99,7 @@ class JSTree extends \VuFind\Hierarchy\TreeRenderer\JSTree ...@@ -99,7 +99,7 @@ class JSTree extends \VuFind\Hierarchy\TreeRenderer\JSTree
] ]
]; ];
} }
$cache[$route] = $this->router->fromRoute($route, $params, $options); $cache[$route] = $this->router->fromRoute($route, $params, $options ?? []);
} elseif ($route == 'parent') { } elseif ($route == 'parent') {
// this is nearly the same as for collections // this is nearly the same as for collections
// but links on the record view i.e. record route // but links on the record view i.e. record route
...@@ -118,7 +118,7 @@ class JSTree extends \VuFind\Hierarchy\TreeRenderer\JSTree ...@@ -118,7 +118,7 @@ class JSTree extends \VuFind\Hierarchy\TreeRenderer\JSTree
} }
// use route 'record' here to avoid linking to the // use route 'record' here to avoid linking to the
// collection view // collection view
$cache[$route] = $this->router->fromRoute('record', $params, $options); $cache[$route] = $this->router->fromRoute('record', $params, $options ?? []);
} else { } else {
$tab = $this->treeRendererConfig->linkedTabDefault ?? 'Description'; $tab = $this->treeRendererConfig->linkedTabDefault ?? 'Description';
$params = [ $params = [
......
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