Skip to content

Commit

Permalink
Update tree.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ibelar committed Aug 7, 2024
1 parent 5fa8a6a commit da853ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app-test/collection/tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
require_once __DIR__ . '/../init-ui.php';

$mode = $_GET['mode'] ?? 'single';
$hideFolder = ($_GET['folder'] ?? null) === null;
$allowFolderSelect = ($_GET['folder'] ?? null) === null;

// some file selection in checkbox mode.
$treeValue = [
Expand Down Expand Up @@ -64,7 +64,7 @@
if ($mode === 'checkbox') {
$tree->setValue($treeValue);
}
$tree->setNodes($fileModel->getFilesHierarchy($hideFolder));
$tree->setNodes($fileModel->getFilesHierarchy($allowFolderSelect));
$tree->setSelectionMode($mode)
->setHeight('600px')
->setFilter(['label', 'type'], 'lenient', 'Search file');
Expand Down

0 comments on commit da853ae

Please sign in to comment.