Changes search by reference to case insentive
Search was being performed case sensitive, changed to case insensitive
This commit is contained in:
@@ -33,7 +33,7 @@ class TaskReferenceFilter extends BaseFilter implements FilterInterface
|
|||||||
public function apply()
|
public function apply()
|
||||||
{
|
{
|
||||||
if (strpos($this->value, '*') >= 0) {
|
if (strpos($this->value, '*') >= 0) {
|
||||||
$this->query->like(TaskModel::TABLE.'.reference', str_replace('*', '%', $this->value));
|
$this->query->ilike(TaskModel::TABLE.'.reference', str_replace('*', '%', $this->value));
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user