From 6731c7d6cbc206d871dea90a4e9afce4fa952b50 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 21 Oct 2022 15:40:36 +0000 Subject: [PATCH] * Fix bug#26119. --- module/product/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/model.php b/module/product/model.php index 9b9e565835..43dcab7bb0 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -644,6 +644,7 @@ class productModel extends model if($this->app->tab == 'qa' and strpos(',testsuite,testreport,testtask,', ",$currentModule,") === false) $isShowBranch = true; if($this->app->tab == 'qa' and $currentModule == 'testtask' and strpos(',create,edit,browseunits,importunitresult,unitcases,', ",$currentMethod,") === false) $isShowBranch = true; if($currentModule == 'testcase' and $currentMethod == 'showimport') $isShowBranch = false; + if($currentModule == 'release' and strpos(',browse,create,', $currentMethod) !== false) $isShowBranch = true; if($isShowBranch) { $this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName[$currentProduct->type]);