+ finish task #1431.

This commit is contained in:
wangyidong
2013-06-25 01:31:43 +00:00
parent 6518a19c40
commit 5caeb06c9c
7 changed files with 200 additions and 180 deletions
+5
View File
@@ -556,6 +556,7 @@ class bug extends control
$this->action->logHistory($actionID, $changes);
$this->sendmail($bugID, $actionID);
if(isonlybody()) die(js::closeColorbox('parent.parent'));
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
}
@@ -584,6 +585,7 @@ class bug extends control
if(dao::isError()) die(js::error(dao::getError()));
$actionID = $this->action->create('bug', $bugID, 'bugConfirmed', $this->post->comment);
$this->sendmail($bugID, $actionID);
if(isonlybody()) die(js::closeColorbox('parent.parent'));
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
}
@@ -625,6 +627,7 @@ class bug extends control
$cancelURL = $this->createLink('bug', 'view', "bugID=$bugID");
die(js::confirm(sprintf($this->lang->bug->remindTask, $bug->toTask), $confirmURL, $cancelURL, 'parent', 'parent'));
}
if(isonlybody()) die(js::closeColorbox('parent.parent'));
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
}
@@ -660,6 +663,7 @@ class bug extends control
$files = $this->loadModel('file')->saveUpload('bug', $bugID);
$actionID = $this->action->create('bug', $bugID, 'Activated', $this->post->comment);
$this->sendmail($bugID, $actionID);
if(isonlybody()) die(js::closeColorbox('parent.parent'));
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
}
@@ -694,6 +698,7 @@ class bug extends control
if(dao::isError()) die(js::error(dao::getError()));
$actionID = $this->action->create('bug', $bugID, 'Closed', $this->post->comment);
$this->sendmail($bugID, $actionID);
if(isonlybody()) die(js::closeColorbox('parent.parent'));
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
}