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;