* Finish task #7472.

This commit is contained in:
tianshujie98
2020-07-17 08:58:18 +08:00
parent 37f057475d
commit a9dcdea00d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ class task extends control
$task = $this->task->getById($taskID);
if($this->post->comment != '' or !empty($changes) or !empty($files))
{
$action = !empty($changes) ? 'Edited' : 'Commented';
$action = (!empty($changes) or !empty($files)) ? 'Edited' : 'Commented';
$fileAction = !empty($files) ? $this->lang->addFiles . join(',', $files) . "\n" : '';
$actionID = $this->action->create('task', $taskID, $action, $fileAction . $this->post->comment);
if(!empty($changes)) $this->action->logHistory($actionID, $changes);