From 474a3874e2b1413fa1f4c83c07d56d94d2ad64f2 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Fri, 5 Jul 2024 13:24:30 +0800 Subject: [PATCH] * [bug#52020,0.5h,0h] If it is a user requirement of the OR interface, there is no need to add sub-requirements (R & D requirements). --- module/story/model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/story/model.php b/module/story/model.php index 1aaa03c01e..f38f6e6254 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3804,6 +3804,10 @@ class storyModel extends model */ public function appendChildren(int $productID, array $stories, string $storyType): array { + /* 如果是OR界面的用户需求,则不需要追加子需求(研发需求)。 */ + /* If it is the OR interface for user requirements, no need to add sub requirements.*/ + if($storyType == 'requirement' && $this->config->vision == 'or') return $stories; + $storyGrades = array(); $requirementGrades = array();