summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-14 21:53:29 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-14 21:53:29 -0400
commit536127c5a11f4a56a57a0191e2a000edb51f1b5c (patch)
tree1508a3e4c2d747b518609d94c884c60344a04686
parentde6bcb97bfc0c0ef2f7e40f381d2f3ef35455fbd (diff)
Fix potential issue with conflict namespace
-rw-r--r--app/Controller/Gantt.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controller/Gantt.php b/app/Controller/Gantt.php
index 74e15d4f..1ea5e957 100644
--- a/app/Controller/Gantt.php
+++ b/app/Controller/Gantt.php
@@ -2,7 +2,7 @@
namespace Controller;
-use Model\Task;
+use Model\Task as TaskModel;
/**
* Gantt controller
@@ -19,13 +19,13 @@ class Gantt extends Base
{
$project = $this->getProject();
$sorting = $this->request->getStringParam('sorting', 'board');
- $filter = $this->taskFilter->gantt()->filterByProject($project['id'])->filterByStatus(Task::STATUS_OPEN);
+ $filter = $this->taskFilter->gantt()->filterByProject($project['id'])->filterByStatus(TaskModel::STATUS_OPEN);
if ($sorting === 'date') {
- $filter->query->asc(Task::TABLE.'.date_started')->asc(Task::TABLE.'.date_creation');
+ $filter->query->asc(TaskModel::TABLE.'.date_started')->asc(TaskModel::TABLE.'.date_creation');
}
else {
- $filter->query->asc('column_position')->asc(Task::TABLE.'.position');
+ $filter->query->asc('column_position')->asc(TaskModel::TABLE.'.position');
}
$this->response->html($this->template->layout('gantt/project', array(