* [misc,done,1h] fix action label error.

This commit is contained in:
tianshujie
2024-12-30 09:51:11 +08:00
committed by 刘刚
parent e9754551d2
commit 393405e93e
+8 -1
View File
@@ -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)