summaryrefslogtreecommitdiff
path: root/app/Filter/TaskColumnFilter.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
commit14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch)
tree79972d53f6091a1ddb17f64a6a05a5523f5d5168 /app/Filter/TaskColumnFilter.php
parent936376ffe74c583d3cb819e98f53a85137fdf8bc (diff)
Rename all models
Diffstat (limited to 'app/Filter/TaskColumnFilter.php')
-rw-r--r--app/Filter/TaskColumnFilter.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Filter/TaskColumnFilter.php b/app/Filter/TaskColumnFilter.php
index 9a4d4253..fa925b79 100644
--- a/app/Filter/TaskColumnFilter.php
+++ b/app/Filter/TaskColumnFilter.php
@@ -3,8 +3,8 @@
namespace Kanboard\Filter;
use Kanboard\Core\Filter\FilterInterface;
-use Kanboard\Model\Column;
-use Kanboard\Model\Task;
+use Kanboard\Model\ColumnModel;
+use Kanboard\Model\TaskModel;
/**
* Filter tasks by column
@@ -34,9 +34,9 @@ class TaskColumnFilter extends BaseFilter implements FilterInterface
public function apply()
{
if (is_int($this->value) || ctype_digit($this->value)) {
- $this->query->eq(Task::TABLE.'.column_id', $this->value);
+ $this->query->eq(TaskModel::TABLE.'.column_id', $this->value);
} else {
- $this->query->eq(Column::TABLE.'.title', $this->value);
+ $this->query->eq(ColumnModel::TABLE.'.title', $this->value);
}
return $this;