* Rename getByList to getByIdList of task module.
This commit is contained in:
@@ -79,7 +79,7 @@ class taskBatchCreateEntry extends entry
|
||||
if(!$data) return $this->send400('error');
|
||||
if(isset($data->data->result) and $data->data->result == 'fail') return $this->sendError(400, $data->data->message);
|
||||
|
||||
$tasks = $this->loadModel('task')->getByList($data->idList);
|
||||
$tasks = $this->loadModel('task')->getByIdList($data->idList);
|
||||
return $this->send(200, array('task' => $tasks));
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -246,7 +246,7 @@ class bugZen extends bug
|
||||
$this->view->branchTagOption = $branchTagOption;
|
||||
$this->view->projectPairs = $this->loadModel('project')->getPairsByProgram();
|
||||
$this->view->executions = $executions;
|
||||
$this->view->tasks = $this->loadModel('task')->getByList($taskIdList);
|
||||
$this->view->tasks = $this->loadModel('task')->getByIdList($taskIdList);
|
||||
$this->view->stories = $this->loadModel('story')->getByList($storyIdList);
|
||||
$this->view->bugs = $bugs;
|
||||
$this->view->users = $this->user->getPairs('noletter');
|
||||
|
||||
@@ -1098,7 +1098,7 @@ class execution extends control
|
||||
if($bug->toTask) $taskIdList[$bug->toTask] = $bug->toTask;
|
||||
}
|
||||
$storyList = $storyIdList ? $this->loadModel('story')->getByList($storyIdList) : array();
|
||||
$taskList = $taskIdList ? $this->loadModel('task')->getByList($taskIdList) : array();
|
||||
$taskList = $taskIdList ? $this->loadModel('task')->getByIdList($taskIdList) : array();
|
||||
|
||||
$showModule = !empty($this->config->datatable->bugBrowse->showModule) ? $this->config->datatable->bugBrowse->showModule : '';
|
||||
|
||||
|
||||
@@ -1163,7 +1163,7 @@ EOF;
|
||||
$bugs = $bugIdList ? $this->loadModel('bug')->getByIdList($bugIdList) : array();
|
||||
$stories = $storyIdList ? $this->loadModel('story')->getByList($storyIdList) : array();
|
||||
$todos = $todoIdList ? $this->loadModel('todo')->getByList($todoIdList) : array();
|
||||
$tasks = $taskIdList ? $this->loadModel('task')->getByList($taskIdList) : array();
|
||||
$tasks = $taskIdList ? $this->loadModel('task')->getByIdList($taskIdList) : array();
|
||||
$tickets = $ticketIdList ? $this->loadModel('ticket')->getByList($ticketIdList) : array();
|
||||
|
||||
$products = $this->loadModel('product')->getPairs();
|
||||
|
||||
@@ -996,7 +996,7 @@ class project extends control
|
||||
if($bug->toTask) $taskIdList[$bug->toTask] = $bug->toTask;
|
||||
}
|
||||
$storyList = $storyIdList ? $this->loadModel('story')->getByList($storyIdList) : array();
|
||||
$taskList = $taskIdList ? $this->loadModel('task')->getByList($taskIdList) : array();
|
||||
$taskList = $taskIdList ? $this->loadModel('task')->getByIdList($taskIdList) : array();
|
||||
|
||||
$showModule = !empty($this->config->datatable->projectBug->showModule) ? $this->config->datatable->projectBug->showModule : '';
|
||||
|
||||
|
||||
@@ -2807,7 +2807,7 @@ class repoModel extends model
|
||||
}
|
||||
$stories = empty($storyIDs) ? array() : $this->loadModel('story')->getByList($storyIDs);
|
||||
$bugs = empty($bugIDs) ? array() : $this->loadModel('bug')->getByIdList($bugIDs);
|
||||
$tasks = empty($taskIDs) ? array() : $this->loadModel('task')->getByList($taskIDs);
|
||||
$tasks = empty($taskIDs) ? array() : $this->loadModel('task')->getByIdList($taskIDs);
|
||||
|
||||
$titleList = array();
|
||||
foreach($relationList as $key => $relation)
|
||||
|
||||
@@ -461,7 +461,7 @@ class storyTest
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
global $tester;
|
||||
return $tester->loadModel('task')->getByList($taskIdList);
|
||||
return $tester->loadModel('task')->getByIdList($taskIdList);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user