* Differentiate batch creation tasks and subtasks.

This commit is contained in:
wumo
2018-03-19 09:44:41 +08:00
parent ab27e19ccb
commit b2c3df0829
5 changed files with 64 additions and 61 deletions
+2 -1
View File
@@ -193,7 +193,7 @@ class task extends control
* @access public
* @return void
*/
public function batchCreate($projectID = 0, $storyID = 0, $iframe = 0, $taskID = 0)
public function batchCreate($projectID = 0, $storyID = 0, $iframe = 0, $taskID = 0, $isChildren = false)
{
$project = $this->project->getById($projectID);
$taskLink = $this->createLink('project', 'browse', "projectID=$projectID&tab=task");
@@ -232,6 +232,7 @@ class task extends control
$this->view->modules = $modules;
$this->view->parent = $taskID;
$this->view->storyID = $storyID;
$this->view->isChildren = $isChildren;
$this->view->story = $this->story->getByID($storyID);
$this->view->storyTasks = $this->task->getStoryTaskCounts(array_keys($stories), $projectID);
$this->view->members = $members;