Fix some issues

This commit is contained in:
Frédéric Guillot 2014-11-23 18:33:29 -05:00
parent 653ee986db
commit 5d7cff3526
4 changed files with 5 additions and 5 deletions

View File

@ -243,7 +243,7 @@ class Task extends Base
$task = $this->getTask();
$values = $this->request->getValues();
list($valid, $errors) = $this->taskValidator->validateTimeModification($values);
list($valid,) = $this->taskValidator->validateTimeModification($values);
if ($valid && $this->taskModification->update($values)) {
$this->session->flash(t('Task updated successfully.'));

View File

@ -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

View File

@ -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);

View File

@ -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);