From dff8dcf565213fbadd9d82b588b97914b76689c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Fri, 10 Feb 2017 02:15:50 +0100 Subject: [PATCH] FIX: fix typo in content search handler --- app/CMS/Handlers/Search/Content.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/CMS/Handlers/Search/Content.php b/app/CMS/Handlers/Search/Content.php index 53a4a2dd..a4fbf4ed 100644 --- a/app/CMS/Handlers/Search/Content.php +++ b/app/CMS/Handlers/Search/Content.php @@ -16,9 +16,9 @@ class Content extends Search { $token = $this->tokenize($term); - return ContentModel::where('content', 'LIKE', $token) - ->orWhere('meta_description', 'LIKE', $token) - ->orWhere('meta_keywords', 'LIKE', $token) + return ContentModel::where('pageContent', 'LIKE', $token) + ->orWhere('metaDescription', 'LIKE', $token) + ->orWhere('metaKeywords', 'LIKE', $token) ->orWhere('title', 'LIKE', $token) ->orWhere('url', 'LIKE', $token) ->get();