* 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. */
+2 -1
View File
@@ -12,6 +12,7 @@
?>
<?php
include '../../common/view/header.html.php';
include '../../common/view/form.html.php';
include '../../common/view/chosen.html.php';
include '../../common/view/autocomplete.html.php';
include '../../common/view/alert.html.php';
@@ -21,7 +22,7 @@ js::set('userList', array_keys($users));
js::set('page', 'create');
?>
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform' class='ajaxForm'>
<table class='table-1'>
<caption><?php echo $lang->bug->create;?></caption>
<tr>