mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Added Ability to search by document name as well.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user