Merge branch 'feature/doctemplate' into release/21.7.2

This commit is contained in:
xieqiyu
2025-06-18 02:18:57 +00:00
174 changed files with 7507 additions and 703 deletions
+2
View File
@@ -1497,11 +1497,13 @@ class actionModel extends model
/* 区别是否有diff信息,以便于将有diff信息的字段放在最后。 */
/* Diff histories by hasing diff info or not. Thus we can to make sure the field with diff show at last. */
if($objectType == 'doctemplate') $this->app->loadLang('doc');
foreach($histories as $history)
{
$fieldName = $history->field;
$history->fieldLabel = isset($this->lang->{$objectType}) && isset($this->lang->{$objectType}->{$fieldName}) ? $this->lang->{$objectType}->{$fieldName} : $fieldName;
if($objectType == 'module') $history->fieldLabel = $this->lang->tree->{$fieldName};
if($objectType == 'doctemplate') $history->fieldLabel = zget($this->lang->docTemplate, $fieldName, zget($this->lang->doc, $fieldName, $fieldName));
if($fieldName == 'fileName') $history->fieldLabel = $this->lang->file->{$fieldName};
if(($length = strlen($history->fieldLabel)) > $maxLength) $maxLength = $length;
$history->diff ? $historiesWithDiff[] = $history : $historiesWithoutDiff[] = $history;