* adjust the activate method.

This commit is contained in:
wangchunsheng
2010-01-13 06:39:20 +00:00
parent 46ce743d3a
commit 2a151b48ad
3 changed files with 3 additions and 7 deletions
+1 -2
View File
@@ -287,8 +287,7 @@ class bug extends control
{
$this->bug->activate($bugID);
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('file');
$files = $this->file->saveUpload('files', 'bug', $bugID);
$files = $this->loadModel('file')->saveUpload('files', 'bug', $bugID);
$actionID = $this->action->create('bug', $bugID, 'Activated', $this->post->comment);
$this->sendmail($bugID, $actionID);
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
+1 -1
View File
@@ -165,7 +165,7 @@ class bugModel extends model
->add('duplicateBug', 0)
->add('lastEditedBy', $this->app->user->account)
->add('lastEditedDate', $now)
->remove('comment')
->remove('comment,files,labels')
->get();
$this->dao->update(TABLE_BUG)->data($bug)->autoCheck()->where('id')->eq((int)$bugID)->exec();
+1 -4
View File
@@ -37,10 +37,7 @@
</tr>
<tr>
<th class='rowhead'><?php echo $lang->bug->files;?></th>
<td class='a-left'>
<input type='file' name='files[]' class='text-4' />
<input type='file' name='files[]' class='text-4' />
</td>
<td class='a-left'><?php echo $this->fetch('file', 'buildform');?></td>
</tr>
<tr>
<td colspan='2' class='a-center'>