diff --git a/module/my/control.php b/module/my/control.php index 0631f85551..afb645f1d8 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -268,6 +268,7 @@ class my extends control * My tasks * * @param string $type + * @param string $orderBy * @param int $recTotal * @param int $recPerPage * @param int $pageID diff --git a/module/stakeholder/model.php b/module/stakeholder/model.php index cee7827f57..a13f97368e 100644 --- a/module/stakeholder/model.php +++ b/module/stakeholder/model.php @@ -102,18 +102,18 @@ class stakeholderModel extends model return false; } - /** + /** * Batch create stakeholders for a project. * * @access public * @return void */ public function batchCreate() - { + { $this->loadModel('action'); $data = (array)fixer::input('post')->get(); - $members = $this->loadModel('project')->getTeamMemberPairs($this->session->PRJ); + $members = $this->loadModel('project')->getTeamMemberPairs($this->session->PRJ); $accounts = array_unique($data['accounts']); $oldJoin = $this->dao->select('`user`, createdDate')->from(TABLE_STAKEHOLDER)->where('objectID')->eq((int)$this->session->PRJ)->andWhere('objectType')->eq('project')->fetchPairs(); $this->dao->delete()->from(TABLE_STAKEHOLDER)->where('objectID')->eq((int)$this->session->PRJ)->andWhere('objectType')->eq('project')->exec();