* [bug#136246,done,3h] convert action comment.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user