summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Filter/TaskReferenceFilter.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Filter/TaskReferenceFilter.php b/app/Filter/TaskReferenceFilter.php
index 27c838f8..d843b777 100644
--- a/app/Filter/TaskReferenceFilter.php
+++ b/app/Filter/TaskReferenceFilter.php
@@ -32,6 +32,11 @@ class TaskReferenceFilter extends BaseFilter implements FilterInterface
*/
public function apply()
{
+ if (strpos($this->value, '*') >= 0) {
+ $this->query->like(TaskModel::TABLE.'.reference', str_replace('*', '%', $this->value));
+ return $this;
+ }
+
$this->query->eq(TaskModel::TABLE.'.reference', $this->value);
return $this;
}