* Code for task #113252.

This commit is contained in:
sunguangming
2024-03-18 16:54:41 +08:00
parent e41dbce11f
commit 6bb77b4346
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -12,6 +12,7 @@ $config->product->search['fields']['module'] = $lang->story->module;
$config->product->search['fields']['stage'] = $lang->story->stage;
$config->product->search['fields']['product'] = $lang->story->product;
$config->product->search['fields']['branch'] = '';
$config->product->search['fields']['grade'] = $lang->story->grade;
$config->product->search['fields']['plan'] = $lang->story->plan;
$config->product->search['fields']['estimate'] = $lang->story->estimate;
@@ -47,6 +48,7 @@ $config->product->search['params']['pri'] = array('operator' => '=',
$config->product->search['params']['product'] = array('operator' => '=', 'control' => 'select', 'values' => '');
$config->product->search['params']['branch'] = array('operator' => '=', 'control' => 'select', 'values' => '');
$config->product->search['params']['grade'] = array('operator' => '=', 'control' => 'select', 'values' => '');
$config->product->search['params']['module'] = array('operator' => 'belong', 'control' => 'select', 'values' => '');
$config->product->search['params']['plan'] = array('operator' => '=', 'control' => 'select', 'values' => '');
$config->product->search['params']['estimate'] = array('operator' => '=', 'control' => 'input', 'values' => '');
+3
View File
@@ -1194,6 +1194,9 @@ class productZen extends product
}
}
$gradePairs = $this->loadModel('story')->getGradePairs($storyType, 'grade', 'name', 'all');
$this->config->product->search['params']['grade']['values'] = $gradePairs;
/* Build search form. */
$params = $isProjectStory ? "projectID=$projectID&" : '';
$actionURL = $this->createLink($this->app->rawModule, $this->app->rawMethod, $params . "productID=$productID&branch=$branch&browseType=bySearch&queryID=myQueryID&storyType=$storyType");
+3 -1
View File
@@ -611,7 +611,9 @@ class storyTao extends storyModel
*/
protected function getUnclosedStatusKeys(): array
{
$moduleName = $this->app->rawModule;
$moduleName = $this->app->rawModule;
if(!in_array($moduleName, array('story', 'epic', 'requirement'))) $moduleName = 'story';
$unclosedStatus = $this->lang->{$moduleName}->statusList;
unset($unclosedStatus['closed']);
return array_keys($unclosedStatus);