Allow auto-completion with the task id

This commit is contained in:
Frederic Guillot
2015-05-09 22:30:23 -04:00
parent 5d5ba44337
commit 1176a489ab
4 changed files with 27 additions and 10 deletions

View File

@@ -24,6 +24,15 @@ class TaskFilter extends Base
return $this;
}
public function filterById($task_id)
{
if ($task_id > 0) {
$this->query->eq('id', $task_id);
}
return $this;
}
public function filterByTitle($title)
{
$this->query->ilike('title', '%'.$title.'%');