From e2b2b3c0a8ebe07342d7217fdff90d82b2c52094 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 13 Mar 2024 10:37:13 +0800 Subject: [PATCH] * Fix bug #46907. --- module/execution/zen.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/module/execution/zen.php b/module/execution/zen.php index 6c2e1b80af..1310d1c6e7 100644 --- a/module/execution/zen.php +++ b/module/execution/zen.php @@ -771,7 +771,16 @@ class executionZen extends execution { $this->config->bug->search['params']['product']['values'] = array(''=>''); } - $this->config->bug->search['params']['execution']['values'] = array(''=>'') + $executions + array('all'=>$this->lang->execution->aboveAllExecution); + + if(!$execution->multiple) + { + unset($this->config->bug->search['fields']['execution'], $this->config->bug->search['params']['execution']); + } + else + { + $this->config->bug->search['params']['execution']['values'] = array(''=>'') + $executions + array('all'=>$this->lang->execution->aboveAllExecution); + } + $this->config->bug->search['params']['plan']['values'] = $this->loadModel('productplan')->getPairs(array_keys($products)); $this->config->bug->search['module'] = 'importBug'; $this->config->bug->search['params']['confirmed']['values'] = $this->lang->bug->confirmedList;