check if folder tree is enable when creating javascript code

This commit is contained in:
Uwe Steinmann 2024-10-11 13:17:17 +02:00
parent 69c84c86fd
commit 2d6c0eea9e

View File

@ -122,6 +122,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Theme_Style {
$orderby = $this->params['orderby'];
$orderdir = (isset($orderby[1]) ? ($orderby[1] == 'd' ? 'desc' : 'asc') : 'asc');
$expandFolderTree = $this->params['expandFolderTree'];
$enableFolderTree = $this->params['enableFolderTree'];
$enableDropUpload = $this->params['enableDropUpload'];
$maxItemsPerPage = $this->params['maxItemsPerPage'];
$maxuploadsize = $this->params['maxuploadsize'];
@ -230,7 +231,7 @@ $('body').on('click', '.order-btn', function(ev) {
});
<?php } ?>
<?php
if($showtree == 1)
if($enableFolderTree && $showtree == 1)
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, 'maintree', ($expandFolderTree == 1) ? -1 : 3, $orderby);
if ($enableDropUpload /*&& $folder->getAccessMode($user) >= M_READWRITE*/) {