From 9503c956302bc8dde5abf48ab098147fb4388ba4 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Fri, 17 May 2024 15:19:50 +0800 Subject: [PATCH] * Fix ajax custom lang. --- module/datatable/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/datatable/control.php b/module/datatable/control.php index 04e6aeb6c8..cdb321ebba 100644 --- a/module/datatable/control.php +++ b/module/datatable/control.php @@ -147,8 +147,10 @@ class datatable extends control if($extra != 'story') { foreach(array('taskCount', 'bugCount', 'caseCount') as $field) unset($cols[$field]); - $cols['title']['title'] = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->title); + $cols['title']['title'] = $cols['title']['title'] = $this->lang->story->name; } + + if($this->app->tab != 'product') $cols['title']['title'] = $this->lang->story->name; } if(($module == 'productplan' && $method == 'browse') || ($module == 'project' && $method == 'bug'))