From 58c2a977e09fbf8499c8d7fbd22bcec083e7f1a2 Mon Sep 17 00:00:00 2001 From: Yagami Date: Wed, 19 Oct 2022 16:17:04 +0800 Subject: [PATCH] * Finish task #72676. --- module/build/control.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/build/control.php b/module/build/control.php index 8588e8610d..ec663070d9 100644 --- a/module/build/control.php +++ b/module/build/control.php @@ -556,6 +556,9 @@ class build extends control $this->loadModel('tree'); $this->loadModel('product'); + $execution = $this->execution->getByID($build->execution); + if(!$execution->hasProduct and !$execution->multiple) unset($this->config->product->search['fields']['plan']); + /* Load pager. */ $this->app->loadClass('pager', $static = true); $pager = new pager($recTotal, $recPerPage, $pageID); @@ -683,6 +686,9 @@ class build extends control $this->config->bug->search['params']['openedBuild']['values'] = $this->build->getBuildPairs($build->product, $branch = 'all', $params = ''); $this->config->bug->search['params']['resolvedBuild']['values'] = $this->config->bug->search['params']['openedBuild']['values']; + $execution = $this->execution->getByID($build->execution); + if(!$execution->hasProduct and !$execution->multiple) unset($this->config->bug->search['fields']['plan']); + unset($this->config->bug->search['fields']['product']); unset($this->config->bug->search['params']['product']); unset($this->config->bug->search['fields']['project']);