Skip to content

Commit

Permalink
Fix to custom filter (via module/event) that allowed searches to bypa…
Browse files Browse the repository at this point in the history
…ss filter (#4319)
  • Loading branch information
kchapple authored and stephenwaite committed Apr 3, 2021
1 parent d51f601 commit 9be2313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/main/finder/dynamic_finder_ajax.php
Expand Up @@ -185,7 +185,7 @@
if (empty($where)) {
$where = $customWhere;
} else {
$where = "$customWhere AND $where";
$where = "$customWhere AND ( $where )";
}
$row = sqlQuery("SELECT COUNT(id) AS count FROM patient_data WHERE $where", $srch_bind);
$iFilteredTotal = $row['count'];
Expand Down

0 comments on commit 9be2313

Please sign in to comment.