diff options
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Base.php | 1 | ||||
-rw-r--r-- | app/Model/Board.php | 3 | ||||
-rw-r--r-- | app/Model/ProjectDailySummary.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/app/Model/Base.php b/app/Model/Base.php index bd9371a7..21353b73 100644 --- a/app/Model/Base.php +++ b/app/Model/Base.php @@ -31,6 +31,7 @@ use PicoDb\Database; * @property \Model\SubTask $subTask * @property \Model\SubtaskHistory $subtaskHistory * @property \Model\Task $task + * @property \Model\TaskCreation $taskCreation * @property \Model\TaskExport $taskExport * @property \Model\TaskFinder $taskFinder * @property \Model\TaskHistory $taskHistory diff --git a/app/Model/Board.php b/app/Model/Board.php index 667bbdbe..9ba2e066 100644 --- a/app/Model/Board.php +++ b/app/Model/Board.php @@ -231,10 +231,9 @@ class Board extends Base * * @access public * @param integer $project_id Project id - * @param array $filters * @return array */ - public function get($project_id, array $filters = array()) + public function get($project_id) { $columns = $this->getColumns($project_id); $tasks = $this->taskFinder->getTasksOnBoard($project_id); diff --git a/app/Model/ProjectDailySummary.php b/app/Model/ProjectDailySummary.php index 25a58368..1e28832e 100644 --- a/app/Model/ProjectDailySummary.php +++ b/app/Model/ProjectDailySummary.php @@ -72,8 +72,8 @@ class ProjectDailySummary extends Base public function countDays($project_id, $from, $to) { $rq = $this->db->execute( - 'SELECT COUNT(DISTINCT day) FROM '.self::TABLE.' WHERE day >= ? AND day <= ?', - array($from, $to) + 'SELECT COUNT(DISTINCT day) FROM '.self::TABLE.' WHERE day >= ? AND day <= ? AND project_id=?', + array($from, $to, $project_id) ); return $rq->fetchColumn(0); |