* [bug#136246,done,3h] convert action comment.

This commit is contained in:
liumengyi
2025-01-20 10:02:08 +08:00
committed by 田淑杰
parent a2117fdd6a
commit 983cfe3275
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -83,6 +83,10 @@ class history extends wg
$actions = data('actions');
if(empty($actions) && !empty($objectID)) $actions = $app->loadTarget('action')->getList($objectType, $objectID);
if(!empty($actions)) $actions = $app->loadTarget('action')->buildActionList($actions, $users, $this->prop('commentBtn'));
foreach($actions as $action)
{
if(!empty($action->comment)) $action->comment = htmlentities($action->comment);
}
$this->setProp('actions', $actions);
}
}
+1 -1
View File
@@ -23,7 +23,7 @@ form
editor
(
set::name('lastComment'),
html($comment)
html(html_entity_decode($comment))
),
$objectType != 'story' ? fileSelector(set::defaultFiles(array_values($files))) : null,
set::actions($actions)