From 13fe5896b6e80e538205e18d0d38033e2a6550ce Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 24 Oct 2022 15:30:20 +0800 Subject: [PATCH] * code for task #72982. --- module/my/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/my/model.php b/module/my/model.php index aa4460f192..d2e4bfe59b 100644 --- a/module/my/model.php +++ b/module/my/model.php @@ -513,7 +513,7 @@ class myModel extends model $projects = $this->loadModel('project')->getPairsByProgram(); $this->config->execution->search['params']['project']['values'] = $projects + array('all' => $this->lang->project->allProjects); - $executions = $this->execution->getPairs(); + $executions = $this->execution->getPairs(0, 'all', 'multiple'); $this->config->execution->search['params']['execution']['values'] = $executions + array('all' => $this->lang->execution->allExecutions); $this->config->execution->search['params']['module']['values'] = $this->loadModel('tree')->getAllModulePairs(); @@ -634,8 +634,8 @@ class myModel extends model unset($this->config->bug->search['fields']['closedBy']); } - $this->config->bug->search['params']['project']['values'] = $this->loadModel('project')->getPairsByProgram() + array('all' => $this->lang->bug->allProject) + array('' => ''); - $this->config->bug->search['params']['execution']['values'] = $this->loadModel('execution')->getPairs(); + $this->config->bug->search['params']['project']['values'] = $this->loadModel('project')->getPairsByProgram() + array('all' => $this->lang->bug->allProject) + array('' => ''); + $this->config->bug->search['params']['execution']['values'] = $this->loadModel('execution')->getPairs(0, 'all', 'multiple'); $this->config->bug->search['params']['product']['values'] = $products + array('' => ''); $this->config->bug->search['params']['plan']['values'] = $this->loadModel('productplan')->getPairs(); $this->config->bug->search['params']['module']['values'] = $this->loadModel('tree')->getAllModulePairs();