* finish task #1437.

This commit is contained in:
wangyidong
2013-06-26 05:32:59 +00:00
parent 0538291a19
commit eabde4a7fe
2 changed files with 12 additions and 3 deletions
+10 -2
View File
@@ -220,11 +220,19 @@ class bug extends control
if(!empty($_POST))
{
$responser['result'] = 'success';
$responser['message'] = '';
$bugID = $this->bug->create();
if(dao::isError()) die(js::error(dao::getError()));
if(dao::isError())
{
$responser['result'] = 'fail';
$responser['message'] = dao::getError();
$this->send($responser);
}
$actionID = $this->action->create('bug', $bugID, 'Opened');
$this->sendmail($bugID, $actionID);
die(js::locate($this->createLink('bug', 'browse', "productID={$this->post->product}&type=byModule&param={$this->post->module}"), 'parent'));
$responser['locate'] = $this->createLink('bug', 'browse', "productID={$this->post->product}&type=byModule&param={$this->post->module}");
$this->send($responser);
}
/* Get product, then set menu. */