From 8b8c4fe18009562e5665b0da1304f27b29b313cb Mon Sep 17 00:00:00 2001 From: mayue Date: Wed, 17 Nov 2021 09:30:34 +0800 Subject: [PATCH] * Finish task #44493,44494. --- module/bug/control.php | 3 +-- module/bug/model.php | 4 ++-- module/bug/view/browse.html.php | 2 +- module/common/view/datatable.fix.html.php | 2 +- module/product/control.php | 6 +++--- module/product/view/browse.html.php | 2 +- module/story/model.php | 4 ++-- module/testcase/control.php | 6 +++--- module/testcase/model.php | 4 ++-- module/testcase/view/browse.html.php | 2 +- 10 files changed, 17 insertions(+), 18 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 920fa963d6..e02a65af7b 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -238,7 +238,7 @@ class bug extends control $this->view->moduleID = $moduleID; $this->view->memberPairs = $this->user->getPairs('noletter|nodeleted'); $this->view->branch = $branch; - $this->view->branches = $this->loadModel('branch')->getPairs($productID); + $this->view->branches = $showBranch ? $this->loadModel('branch')->getPairs($productID) : array(); $this->view->executions = $executions; $this->view->plans = $this->loadModel('productplan')->getPairs($productID); $this->view->stories = $storyList; @@ -246,7 +246,6 @@ class bug extends control $this->view->setModule = true; $this->view->isProjectBug = ($productID and !$this->projectID) ? false : true; $this->view->modulePairs = $showModule ? $this->tree->getModulePairs($productID, 'bug', $showModule) : array(); - $this->view->showBranch = $showBranch; $this->display(); } diff --git a/module/bug/model.php b/module/bug/model.php index cc0f36232b..9e8fdd185a 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -2648,7 +2648,7 @@ class bugModel extends model * @access public * @return void */ - public function printCell($col, $bug, $users, $builds, $branches, $modulePairs, $executions = array(), $plans = array(), $stories = array(), $tasks = array(), $mode = 'datatable', $showBranch = '') + public function printCell($col, $bug, $users, $builds, $branches, $modulePairs, $executions = array(), $plans = array(), $stories = array(), $tasks = array(), $mode = 'datatable') { /* Check the product is closed. */ $canBeChanged = common::canBeChanged('bug', $bug); @@ -2751,7 +2751,7 @@ class bugModel extends model echo "" . zget($this->lang->bug->confirmedList, $bug->confirmed, $bug->confirmed) . " "; break; case 'title': - if($bug->branch and isset($branches[$bug->branch]) and $showBranch) echo "{$branches[$bug->branch]} "; + if($bug->branch and isset($branches[$bug->branch])) echo "{$branches[$bug->branch]} "; if($bug->module and isset($modulePairs[$bug->module])) echo "{$modulePairs[$bug->module]} "; echo $canView ? html::a($bugLink, $bug->title, null, "style='color: $bug->color'") : "{$bug->title}"; break; diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 0538e2f3e6..b32720fd99 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -264,7 +264,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow - bug->printCell($value, $bug, $users, $builds, $branches, $modulePairs, $executions, $plans, $stories, $tasks, $useDatatable ? 'datatable' : 'table', $showBranch);?> + bug->printCell($value, $bug, $users, $builds, $branches, $modulePairs, $executions, $plans, $stories, $tasks, $useDatatable ? 'datatable' : 'table');?> diff --git a/module/common/view/datatable.fix.html.php b/module/common/view/datatable.fix.html.php index 22ace63748..fa7c745e7f 100644 --- a/module/common/view/datatable.fix.html.php +++ b/module/common/view/datatable.fix.html.php @@ -1,6 +1,6 @@ moduleName;?> methodName;?> -methodName);?> +moduleName . ucfirst($this->methodName);?>