Skip to content
Snippets Groups Projects
Verified Commit e5a23527 authored by Damien's avatar Damien
Browse files

FEAT #13271 TIME 0:10 Improve search with quick search

parent 4014f3e8
No related branches found
No related tags found
No related merge requests found
......@@ -317,7 +317,7 @@ class SearchController
if ($body['meta']['values'][0] == '"' && $body['meta']['values'][strlen($body['meta']['values']) - 1] == '"') {
$quick = trim($body['meta']['values'], '"');
$quickWhere = "(subject = ? OR res_id in (select res_id_master from res_attachments where title = ?)";
$quickWhere .= ' OR alt_identifier ? OR res_id in (select res_id_master from res_attachments where identifier ilike ?)';
$quickWhere .= ' OR alt_identifier = ? OR res_id in (select res_id_master from res_attachments where identifier ilike ?)';
$quickWhere .= ' OR barcode = ?';
if (is_numeric($quick)) {
$quickWhere .= ' OR res_id = ?';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment