From 3c4cf8d70473e9a504f7d4c6c87d9a22fa24fe67 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 14 Apr 2014 16:09:03 -0500 Subject: [PATCH] orm: Fix for the `contains` field filter --- include/class.orm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.orm.php b/include/class.orm.php index 2817c66dc..4a6102de9 100644 --- a/include/class.orm.php +++ b/include/class.orm.php @@ -786,7 +786,7 @@ class MySqlCompiler extends SqlCompiler { function __contains($a, $b) { # {%a} like %{$b}% - return sprintf('%s LIKE %s', $a, $this->input("%$b%")); + return sprintf('%s LIKE %s', $a, $this->input($b = "%$b%")); } function __in($a, $b) { -- GitLab