Fix js warning about calling getDocumentByID() with empty argument

This commit is contained in:
Aleksander Machniak 2017-01-31 23:41:11 +01:00
parent d8b261d981
commit 5a34e8e144

View file

@ -180,6 +180,10 @@ class tasklist_ui
$jsenv = array();
$lists = $this->plugin->driver->get_lists(0, $tree);
if (empty($attrib['id'])) {
$attrib['id'] = 'rcmtasklistslist';
}
// walk folder tree
if (is_object($tree)) {
$html = $this->list_tree_html($tree, $lists, $jsenv, $attrib);