diff --git a/module/bug/control.php b/module/bug/control.php index 39526d4205..cf923eaf39 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -756,7 +756,10 @@ class bug extends control { $this->bug->resolve($bugID); if(dao::isError()) die(js::error(dao::getError())); - $actionID = $this->action->create('bug', $bugID, 'Resolved', $this->post->comment, $this->post->resolution); + $files = $this->loadModel('file')->saveUpload('task', $taskID); + + $fileAction = !empty($files) ? $this->lang->addFiles . join(',', $files) . "\n" : ''; + $actionID = $this->action->create('bug', $bugID, 'Resolved', $fileAction . $this->post->comment, $this->post->resolution); $this->sendmail($bugID, $actionID); $bug = $this->bug->getById($bugID); diff --git a/module/bug/model.php b/module/bug/model.php index 7bb9f89e12..ad645aaab1 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -568,7 +568,7 @@ class bugModel extends model ->add('lastEditedDate', $now) ->setDefault('duplicateBug', 0) ->setDefault('assignedTo', $oldBug->openedBy) - ->remove('comment') + ->remove('comment,files,labels') ->get(); if($bug->resolvedBuild != 'trunk') diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 25fc8b95e0..90ba471db5 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -142,7 +142,7 @@ js::set('refresh', $lang->refresh);