From 393405e93e3aeee62dec1f04e4f97612133e51cc Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 20 Dec 2024 09:41:15 +0800 Subject: [PATCH] * [misc,done,1h] fix action label error. --- module/action/model.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/action/model.php b/module/action/model.php index 799c73e439..d1369fb29d 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -1255,7 +1255,7 @@ class actionModel extends model { list($objectLabel, $moduleName, $methodName, $vars) = explode('|', $action->objectLabel); $action->objectLabel = $objectLabel; - $action->product = trim($action->product, ','); + $action->product = trim((string)$action->product, ','); if($action->objectType == 'module') return $action; if(in_array($action->objectType, array('program', 'project', 'product', 'execution'))) @@ -1394,6 +1394,13 @@ class actionModel extends model $historiesWithDiff = array(); // To save histories without diff info. $historiesWithoutDiff = array(); // To save histories with diff info. + /* 加载工作流新增的语言包。*/ + if($this->config->edition != 'open') + { + $flow = $this->loadModel('workflow')->getByModule($objectType); + if(!empty($flow)) $this->loadModel('common')->loadCustomLang($objectType, 'view'); + } + /* 区别是否有diff信息,以便于将有diff信息的字段放在最后。 */ /* Diff histories by hasing diff info or not. Thus we can to make sure the field with diff show at last. */ foreach($histories as $history)