From c02edf5ca7d004133191855dff407daca72965c9 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 27 Apr 2022 16:34:23 -0400 Subject: [PATCH] Added Ability to search by document name as well. --- client_documents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_documents.php b/client_documents.php index 30dafdc3..767dc9cc 100644 --- a/client_documents.php +++ b/client_documents.php @@ -16,7 +16,7 @@ if(!empty($_GET['sb'])){ // Search query SQL snippet if(!empty($q)){ - $query_snippet = "AND (MATCH(document_content_raw) AGAINST ('$q'))"; + $query_snippet = "AND (MATCH(document_content_raw) AGAINST ('$q') OR document_name LIKE '%$q%')"; }else{ $query_snippet = ""; // empty }