* finish task #1437.
This commit is contained in:
+10
-2
@@ -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¶m={$this->post->module}"), 'parent'));
|
||||
$responser['locate'] = $this->createLink('bug', 'browse', "productID={$this->post->product}&type=byModule¶m={$this->post->module}");
|
||||
$this->send($responser);
|
||||
}
|
||||
|
||||
/* Get product, then set menu. */
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user