From b9fce15bfd32b6903daef73b39405f05fa426e12 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 12 Apr 2023 10:59:09 +0800 Subject: [PATCH] * Fixed tree highlighting on the left side of my space. --- module/doc/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index 5eaf28a5d1..2b056cc306 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3106,7 +3106,7 @@ class docModel extends model $myView->objectType = 'doc'; $myView->objectID = 0; $myView->hasAction = false; - $myView->active = $libType ? 1 : 0; + $myView->active = $libType == 'view' ? 1 : 0; $myCollection = new stdclass(); $myCollection->id = 0; @@ -3115,7 +3115,7 @@ class docModel extends model $myCollection->objectType = 'doc'; $myCollection->objectID = 0; $myCollection->hasAction = false; - $myCollection->active = $libType ? 1 : 0; + $myCollection->active = $libType == 'collect' ? 1 : 0; $myCreation = new stdclass(); $myCreation->id = 0;