* code for task#2154.

This commit is contained in:
xia0ta0
2014-12-11 17:40:06 +08:00
parent f67741ebcf
commit 54c49e2340
4 changed files with 11 additions and 4 deletions
+4 -1
View File
@@ -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);