* [bug#55796] Reset the stage list of epic and requirement for build search form.

This commit is contained in:
xieqiyu
2024-11-11 11:14:58 +08:00
committed by 胡方舟
parent 6dd4d3cf44
commit 86beb735e6
+1 -7
View File
@@ -794,13 +794,7 @@ class productModel extends model
}
/* Reset the stage list for epic and requirement. */
if(in_array($storyType, array('epic', 'requirement')))
{
$epicStageList = array();
$epicStages = array('wait', 'planned', 'projected', 'developing', 'delivering', 'delivered', 'closed');
foreach($epicStages as $stageName) $epicStageList[$stageName] = $this->lang->story->stageList[$stageName];
$searchConfig['params']['stage']['values'] = $epicStageList;
}
if($storyType != 'all') $searchConfig['params']['stage']['values'] = $this->lang->$storyType->stageList;
$this->loadModel('search')->setSearchParams($searchConfig);
}