mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 04:14:54 +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
|
// Search query SQL snippet
|
||||||
if(!empty($q)){
|
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{
|
}else{
|
||||||
$query_snippet = ""; // empty
|
$query_snippet = ""; // empty
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user