use $dms->getRootFolder() instead of $settings->_rootFolderId

This commit is contained in:
Uwe Steinmann 2020-12-18 10:22:29 +01:00
parent 24a919aed1
commit 19afdb9dc3

View File

@ -40,13 +40,14 @@ class SeedDMS_View_FolderChooser extends SeedDMS_Bootstrap_Style {
} /* }}} */
function js() { /* {{{ */
$dms = $this->params['dms'];
$rootfolderid = $this->params['rootfolderid'];
$form = $this->params['form'];
$mode = $this->params['mode'];
$orderby = $this->params['orderby'];
header('Content-Type: application/javascript');
$this->printNewTreeNavigationJs($rootfolderid, $mode, 0, $form, 0, $orderby);
$this->printNewTreeNavigationJs($dms->getRootFolder()->getId()/*$rootfolderid*/, $mode, 0, $form, 0, $orderby);
} /* }}} */
function show() { /* {{{ */
@ -59,7 +60,7 @@ class SeedDMS_View_FolderChooser extends SeedDMS_Bootstrap_Style {
$rootfolderid = $this->params['rootfolderid'];
// $this->htmlStartPage(getMLText("choose_target_folder"));
$this->printNewTreeNavigationHtml($rootfolderid, $mode, 0, $form, 0, $orderby);
$this->printNewTreeNavigationHtml($dms->getRootFolder()->getId()/*$rootfolderid*/, $mode, 0, $form, 0, $orderby);
echo '<script src="../out/out.FolderChooser.php?action=js&'.$_SERVER['QUERY_STRING'].'"></script>'."\n";
// $this->htmlEndPage(true);
} /* }}} */