From da853aeeb06b292f49367da5276f314abb1fd8c0 Mon Sep 17 00:00:00 2001 From: Alain Belair Date: Wed, 7 Aug 2024 15:01:53 -0400 Subject: [PATCH] Update tree.php --- app-test/collection/tree.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-test/collection/tree.php b/app-test/collection/tree.php index 71616a9..6875a32 100644 --- a/app-test/collection/tree.php +++ b/app-test/collection/tree.php @@ -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 = [ @@ -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');