Use wildcard operator for tag filter

Fixes #4950
This commit is contained in:
Shyam Chaudhary 2023-01-07 08:47:31 +13:00 committed by GitHub
parent 372ebcb37e
commit 8902c1448d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class TaskTagFilter extends BaseFilter implements FilterInterface
return $this->db
->table(TagModel::TABLE)
->columns(TaskTagModel::TABLE.'.task_id')
->ilike(TagModel::TABLE.'.name', $this->value)
->ilike(TagModel::TABLE.'.name', '%'.$this->value.'%')
->join(TaskTagModel::TABLE, 'tag_id', 'id');
}
}