* 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);
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -142,7 +142,7 @@ js::set('refresh', $lang->refresh);
<tr>
<th><?php echo $lang->bug->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=2&percent=0.85');?></td>
</tr>
</tr>
<tr>
<td></td>
<td colspan='2'>
+5 -1
View File
@@ -21,7 +21,7 @@
</div>
</div>
<form class='form-condensed' method='post' target='hiddenwin'>
<form class='form-condensed' method='post' enctype='multipart/form-data' target='hiddenwin'>
<table class='table table-form'>
<tr>
<th class='w-80px'><?php echo $lang->bug->resolution;?></th>
@@ -43,6 +43,10 @@
<th><?php echo $lang->bug->assignedTo;?></th>
<td><?php echo html::select('assignedTo', $users, $bug->openedBy, "class='form-control chosen'");?></td>
</tr>
<tr>
<th><?php echo $lang->bug->files;?></th>
<td colspan='2'><?php echo $this->fetch('file', 'buildform', 'fileCount=2&percent=0.85');?></td>
</tr>
<tr>
<th><?php echo $lang->comment;?></th>
<td colspan='2'><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>