Skip to content
Snippets Groups Projects
Commit a1103981 authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #14803

* fixes bug in pickTitle()
parent d4bbe904
No related merge requests found
......@@ -43,4 +43,14 @@ class NoCollections extends \VuFind\Hierarchy\TreeDataFormatter\Json
//always return false to ensure Record-Links only
return false;
}
protected function pickTitle($record, $parentID)
{
if (is_null($parentID)) {
return isset($record->title) ? $record->title : $record->id;
}
else {
return parent::pickTitle($record, $parentID);
}
}
}
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