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

FIX #16669 TIME 1:45 Fix search perimeter

parent 54768982
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ class SearchController ...@@ -45,7 +45,7 @@ class SearchController
$workflowSelect = "SELECT id FROM workflows ws WHERE workflows.main_document_id = main_document_id AND process_date IS NULL AND status IS NULL ORDER BY \"order\" LIMIT 1"; $workflowSelect = "SELECT id FROM workflows ws WHERE workflows.main_document_id = main_document_id AND process_date IS NULL AND status IS NULL ORDER BY \"order\" LIMIT 1";
$workflowSelect = "SELECT main_document_id FROM workflows WHERE user_id in (?) AND id in ({$workflowSelect})"; $workflowSelect = "SELECT main_document_id FROM workflows WHERE user_id in (?) AND id in ({$workflowSelect})";
$where = ["id in ({$workflowSelect}) OR typist = ?"]; $where = ["(id in ({$workflowSelect}) OR typist = ?)"];
$data = [$users, $GLOBALS['id']]; $data = [$users, $GLOBALS['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