* fix a bug for batchcreate task.

This commit is contained in:
wyd621
2014-03-19 01:21:25 +00:00
parent 7ce1b3428d
commit 0c9211a2b1
5 changed files with 16 additions and 15 deletions
+2 -4
View File
@@ -151,10 +151,7 @@ class task extends control
$mails = $this->task->batchCreate($projectID);
if(dao::isError()) die(js::error(dao::getError()));
foreach($mails as $mail)
{
$this->sendmail($mail->taskID, $mail->actionID);
}
foreach($mails as $mail) $this->sendmail($mail->taskID, $mail->actionID);
/* Locate the browser. */
if($iframe) die(js::reload('parent.parent'));
@@ -175,6 +172,7 @@ class task extends control
$this->view->stories = $stories;
$this->view->modules = $modules;
$this->view->storyID = $storyID;
$this->view->story = $this->loadModel('story')->getByID($storyID);
$this->view->members = $members;
$this->display();
}