From 17e74d80ebf5ce3e7c28b81e31072f8a96c8324c Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 10 Jul 2016 13:16:52 +0200 Subject: [PATCH] The search processor must check for occurences inside strings and not for a complete match. --- src/engine/Api/V1/Processors/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/Api/V1/Processors/Search.php b/src/engine/Api/V1/Processors/Search.php index d8b2a7e2..cb83753f 100644 --- a/src/engine/Api/V1/Processors/Search.php +++ b/src/engine/Api/V1/Processors/Search.php @@ -55,7 +55,7 @@ class Search implements ProcessorsInterface { foreach ($haystack as $key => $value) { $currentKey = $key; - if ($needle === $value || (is_array($value) && self::_recursiveArraySearch($value, $needle) !== false)) { + if (strpos($value, $needle) !== false || (is_array($value) && self::_recursiveArraySearch($value, $needle) !== false)) { return $currentKey; } }