undo naming tree 'main'. It breaks selection of folders in the tree

This commit is contained in:
Uwe Steinmann 2020-06-03 18:31:01 +02:00
parent 8e139e46b3
commit c0152e8def

View File

@ -209,7 +209,7 @@ $('body').on('click', '.order-btn', function(ev) {
<?php } ?>
<?php
if($showtree == 1)
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, 'main', ($expandFolderTree == 1) ? -1 : 3, $orderby);
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, '', ($expandFolderTree == 1) ? -1 : 3, $orderby);
if ($enableDropUpload && $folder->getAccessMode($user) >= M_READWRITE) {
echo "SeedDMSUpload.setUrl('../op/op.Ajax.php');";
@ -581,7 +581,7 @@ $('body').on('click', '.order-btn', function(ev) {
* access expandFolderTree with $this->params because it can
* be changed by preContent hook.
*/
$this->printNewTreeNavigationHtml($folderid, M_READ, 0, 'main', ($this->params['expandFolderTree'] == 1) ? -1 : 3, $orderby);
$this->printNewTreeNavigationHtml($folderid, M_READ, 0, '', ($this->params['expandFolderTree'] == 1) ? -1 : 3, $orderby);
$this->contentContainerEnd();
} else {
$this->contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=1\"><i class=\"icon-plus-sign\"></i></a>", true);