Fix some issues
This commit is contained in:
@@ -243,7 +243,7 @@ class Task extends Base
|
|||||||
$task = $this->getTask();
|
$task = $this->getTask();
|
||||||
$values = $this->request->getValues();
|
$values = $this->request->getValues();
|
||||||
|
|
||||||
list($valid, $errors) = $this->taskValidator->validateTimeModification($values);
|
list($valid,) = $this->taskValidator->validateTimeModification($values);
|
||||||
|
|
||||||
if ($valid && $this->taskModification->update($values)) {
|
if ($valid && $this->taskModification->update($values)) {
|
||||||
$this->session->flash(t('Task updated successfully.'));
|
$this->session->flash(t('Task updated successfully.'));
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ use PicoDb\Database;
|
|||||||
* @property \Model\SubTask $subTask
|
* @property \Model\SubTask $subTask
|
||||||
* @property \Model\SubtaskHistory $subtaskHistory
|
* @property \Model\SubtaskHistory $subtaskHistory
|
||||||
* @property \Model\Task $task
|
* @property \Model\Task $task
|
||||||
|
* @property \Model\TaskCreation $taskCreation
|
||||||
* @property \Model\TaskExport $taskExport
|
* @property \Model\TaskExport $taskExport
|
||||||
* @property \Model\TaskFinder $taskFinder
|
* @property \Model\TaskFinder $taskFinder
|
||||||
* @property \Model\TaskHistory $taskHistory
|
* @property \Model\TaskHistory $taskHistory
|
||||||
|
|||||||
@@ -231,10 +231,9 @@ class Board extends Base
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param integer $project_id Project id
|
* @param integer $project_id Project id
|
||||||
* @param array $filters
|
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get($project_id, array $filters = array())
|
public function get($project_id)
|
||||||
{
|
{
|
||||||
$columns = $this->getColumns($project_id);
|
$columns = $this->getColumns($project_id);
|
||||||
$tasks = $this->taskFinder->getTasksOnBoard($project_id);
|
$tasks = $this->taskFinder->getTasksOnBoard($project_id);
|
||||||
|
|||||||
@@ -72,8 +72,8 @@ class ProjectDailySummary extends Base
|
|||||||
public function countDays($project_id, $from, $to)
|
public function countDays($project_id, $from, $to)
|
||||||
{
|
{
|
||||||
$rq = $this->db->execute(
|
$rq = $this->db->execute(
|
||||||
'SELECT COUNT(DISTINCT day) FROM '.self::TABLE.' WHERE day >= ? AND day <= ?',
|
'SELECT COUNT(DISTINCT day) FROM '.self::TABLE.' WHERE day >= ? AND day <= ? AND project_id=?',
|
||||||
array($from, $to)
|
array($from, $to, $project_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $rq->fetchColumn(0);
|
return $rq->fetchColumn(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user