Make swimlane filter compatible with numeric title

Fixes #3940
This commit is contained in:
Frédéric Guillot 2018-10-02 11:34:00 -07:00
parent 4a58cbc917
commit 5cce000f95
1 changed files with 1 additions and 8 deletions

View File

@ -34,14 +34,7 @@ class TaskSwimlaneFilter extends BaseFilter implements FilterInterface
*/
public function apply()
{
if (is_int($this->value) || ctype_digit($this->value)) {
$this->query->eq(TaskModel::TABLE.'.swimlane_id', $this->value);
} else {
$this->query->beginOr();
$this->query->ilike(SwimlaneModel::TABLE.'.name', $this->value);
$this->query->closeOr();
}
return $this;
}
}