From 86beb735e6f2b00a12794c60f44e02ae73360680 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 11 Nov 2024 11:13:23 +0800 Subject: [PATCH] * [bug#55796] Reset the stage list of epic and requirement for build search form. --- module/product/model.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/module/product/model.php b/module/product/model.php index e9d6c366fb..163eac344f 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -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); }