From 2fa92b3fb7b0b30a313959e2f02adf5cccd6c622 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 7 Nov 2025 10:50:48 +0800 Subject: [PATCH] * [bug#67031,done,0.2h] fix module tree active error. --- lib/zin/wg/modulemenu/v1.php | 2 +- module/execution/ui/task.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zin/wg/modulemenu/v1.php b/lib/zin/wg/modulemenu/v1.php index e6800ede7d..aa240acccc 100644 --- a/lib/zin/wg/modulemenu/v1.php +++ b/lib/zin/wg/modulemenu/v1.php @@ -94,7 +94,7 @@ class moduleMenu extends wg $items = $this->buildMenuTree($child->id); if($items) $item['items'] = $items; - if($child->id == $activeKey || $child->id == 'product-' . $activeKey) + if($child->id === $activeKey || $child->id === 'product-' . $activeKey) { $itemKey = $this->prop('checkbox') ? 'checked' : 'selected'; $item[$itemKey] = true; diff --git a/module/execution/ui/task.html.php b/module/execution/ui/task.html.php index 0171b2b227..4b52932d89 100644 --- a/module/execution/ui/task.html.php +++ b/module/execution/ui/task.html.php @@ -239,7 +239,7 @@ if(!$isFromDoc) moduleMenu ( set::modules($moduleTree), - set::activeKey($activeKey), + set::activeKey($status == 'byProduct' ? "product-{$activeKey}" : $activeKey), set::settingLink(createLink('tree', 'browsetask', "rootID=$execution->id&productID=0")), set::settingApp($execution->multiple ? 'execution' : 'project'), set::closeLink(createLink('execution', 'task', "executionID={$executionID}")),