From 6eb986cf6eb8fc3b2d39e592f1325968e48b4e06 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 14 Mar 2024 09:37:19 +0800 Subject: [PATCH] * Fix bug #46942. --- module/execution/control.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index 2ce696ba6b..5b463f4615 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1271,7 +1271,12 @@ class execution extends control list($pmUsers, $poUsers, $qdUsers, $rdUsers) = $this->executionZen->setUserMoreLink($executions); /* Set custom fields. */ - foreach(explode(',', $this->config->execution->list->customBatchEditFields) as $field) $customFields[$field] = $this->lang->execution->$field; + foreach(explode(',', $this->config->execution->list->customBatchEditFields) as $field) + { + $fieldTitle = $this->app->tab == 'execution' ? str_replace($this->lang->executionCommon, $this->lang->execution->common, $this->lang->execution->$field) : $this->lang->execution->$field; + if($field == 'lifetime') $fieldTitle = $this->app->tab == 'execution' ? $this->lang->execution->execType : $this->lang->execution->type; + $customFields[$field] = $fieldTitle; + } $parentIdList = array(); foreach($executions as $execution)