This commit is contained in:
holan20180123
2020-07-17 17:19:47 +08:00
16 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -590,7 +590,7 @@ class testcase extends control
if($this->post->comment != '' or !empty($changes) or !empty($files))
{
$this->loadModel('action');
$action = !empty($changes) ? 'Edited' : 'Commented';
$action = (!empty($changes) or !empty($files)) ? 'Edited' : 'Commented';
$fileAction = '';
if(!empty($files)) $fileAction = $this->lang->addFiles . join(',', $files) . "\n";
$actionID = $this->action->create('case', $caseID, $action, $fileAction . $this->post->comment);