From bc4c543abf1e4d450d7560f044e8f3fbccfac3e0 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 26 Jan 2024 10:56:19 +0800 Subject: [PATCH] * Change custom branch field title. --- module/datatable/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/datatable/control.php b/module/datatable/control.php index a613d95681..42c0abe3fb 100644 --- a/module/datatable/control.php +++ b/module/datatable/control.php @@ -136,16 +136,16 @@ class datatable extends control } } - if($module == 'productplan' && $method == 'browse') + if(($module == 'productplan' && $method == 'browse') || ($module == 'project' && $method == 'bug')) { if($this->session->currentProductType == 'normal') { - unset($cols['branchName']); + unset($cols['branchName'], $cols['branch']); } else { $this->app->loadLang('product'); - $cols['branchName']['title'] = sprintf($this->lang->product->branch, $this->lang->product->branchName[$this->session->currentProductType]); + $cols['branch']['title'] = $cols['branchName']['title'] = sprintf($this->lang->product->branch, $this->lang->product->branchName[$this->session->currentProductType]); } }