From 925ea656f1f9a5dbd4c881fc26f5ef8066eef318 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Fri, 5 Jan 2024 15:18:49 +0800 Subject: [PATCH] * Finish task #110048. --- module/execution/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index b701f4f9f5..4b8a97792e 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -3403,9 +3403,10 @@ class executionModel extends model $extra = str_replace(array(',', ' '), array('&', ''), $extra); parse_str($extra, $output); + $linkRoadmapStory = $this->config->vision == 'ipd' && $storyType == 'requirement' && $this->app->rawModule = 'project' && $this->app->rawMethod == 'create'; + $notAllowedStatus = ($this->app->rawMethod == 'batchcreate' || $linkRoadmapStory) ? 'closed' : 'draft,reviewing,closed'; foreach($stories as $key => $storyID) { - $notAllowedStatus = $this->app->rawMethod == 'batchcreate' ? 'closed' : 'draft,reviewing,closed'; if(strpos($notAllowedStatus, $storyList[$storyID]->status) !== false) continue; if(isset($linkedStories[$storyID])) continue;