summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-24 16:52:59 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-24 16:52:59 -0400
commit9ce55e1f9e1fec26b44a367263cd6c9a73c270a4 (patch)
treee723924a1965c80990ee3df7229f4fcb999dcb07 /app/Model
parent1a0465cb57818fd302da8bd7a27b9a78415d1804 (diff)
Fix query with ambiguous column name
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/TaskFilter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/TaskFilter.php b/app/Model/TaskFilter.php
index 1fdf0a50..134f67cd 100644
--- a/app/Model/TaskFilter.php
+++ b/app/Model/TaskFilter.php
@@ -68,7 +68,7 @@ class TaskFilter extends Base
*/
public function excludeTasks(array $task_ids)
{
- $this->query->notin('id', $task_ids);
+ $this->query->notin(Task::TABLE.'.id', $task_ids);
return $this;
}
@@ -82,7 +82,7 @@ class TaskFilter extends Base
public function filterById($task_id)
{
if ($task_id > 0) {
- $this->query->eq('id', $task_id);
+ $this->query->eq(Task::TABLE.'.id', $task_id);
}
return $this;