From 6a23a474120d5c214c255026b6b2188d171f57c2 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 9 Dec 2025 09:27:04 +0000 Subject: [PATCH] * [bug#67675] Hidden the button in task kanban when story frozen. --- module/execution/ui/taskkanban.html.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/execution/ui/taskkanban.html.php b/module/execution/ui/taskkanban.html.php index 04cd157d98..0d188be988 100644 --- a/module/execution/ui/taskkanban.html.php +++ b/module/execution/ui/taskkanban.html.php @@ -57,10 +57,10 @@ $canBatchCreateRisk = $canModifyExecution && common::hasPriv('risk', 'batchCrea $canCreateBug = ($canModifyExecution && $productID && common::hasPriv('bug', 'create')); $canBatchCreateBug = ($canModifyExecution && $productID && common::hasPriv('bug', 'batchCreate')); $canImportBug = ($canModifyExecution && $productID && !$isLimited && common::hasPriv('execution', 'importBug')); -$canCreateStory = ($canModifyExecution && $productID && common::hasPriv('story', 'create')); -$canBatchCreateStory = ($canModifyExecution && $productID && common::hasPriv('story', 'batchCreate')); -$canLinkStory = ($canModifyExecution && $productID && common::hasPriv('execution', 'linkStory') && !empty($execution->hasProduct)); -$canLinkStoryByPlan = ($canModifyExecution && $productID && common::hasPriv('execution', 'importplanstories') && !$hiddenPlan && !empty($execution->hasProduct)); +$canCreateStory = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('story', 'create')); +$canBatchCreateStory = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('story', 'batchCreate')); +$canLinkStory = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('execution', 'linkStory') && !empty($execution->hasProduct)); +$canLinkStoryByPlan = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('execution', 'importplanstories') && !$hiddenPlan && !empty($execution->hasProduct)); $hasStoryButton = !$hasFrozenStories && ($canCreateStory or $canBatchCreateStory or $canLinkStory or $canLinkStoryByPlan); $hasTaskButton = ($canCreateTask or $canBatchCreateTask or $canImportBug); $hasBugButton = ($canCreateBug or $canBatchCreateBug);