From 60f5ff7d7a09afee1ed2ec4503c403c59e08404e Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 29 Aug 2024 11:00:39 +0800 Subject: [PATCH] * [bug#54661,done,0.3h] If the requirement type is software requirements, then the delivered stage needs to be removed. --- module/story/ui/edit.html.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/story/ui/edit.html.php b/module/story/ui/edit.html.php index 8c6468308c..383bfa4d49 100644 --- a/module/story/ui/edit.html.php +++ b/module/story/ui/edit.html.php @@ -36,8 +36,11 @@ if(!empty($story->stages) && isset($fields['stage']['options'])) } } -unset($fields['stage']['options']['delivered']); -unset($fields['stage']['options']['delivering']); +if($story->type == 'story') +{ + unset($fields['stage']['options']['delivered']); + unset($fields['stage']['options']['delivering']); +} if($app->tab == 'product') data('activeMenuID', $story->type); jsVar('storyType', $story->type);