* [task#134182,start,1h] log history and print history.

This commit is contained in:
liumengyi
2024-12-30 09:51:11 +08:00
committed by 刘刚
parent 213416e43d
commit 6c5bdc2d13
6 changed files with 24 additions and 10 deletions
+3 -2
View File
@@ -1413,9 +1413,10 @@ class actionModel extends model
foreach($histories as $history)
{
$history->fieldLabel = str_pad($history->fieldLabel, $maxLength, $this->lang->action->label->space);
if(strpos(',project,execution,', ",{$objectType},") !== false && strpos(',addDiff,removeDiff,', ",{$history->field},") !== false)
if(strpos(',addDiff,removeDiff,', ",{$history->field},") !== false)
{
$content .= sprintf($this->lang->action->desc->{$history->field}, $history->diff) . '<br/>';
$fileLabel = isset($this->lang->file->common) ? $this->lang->file->common . ' ' : '';
$content .= sprintf($this->lang->action->desc->{$history->field}, strpos(',project,execution,', ",{$objectType},") !== false ? '' : $fileLabel, $history->diff) . '<br/>';
}
elseif($history->diff != '')
{