MDL-76446 user: correct logic for multiple keyword search.

When the keyword participant filter was used with multiple values
in conjunction with other participants filters, the boolean logic
was effectively:

 X AND Y OR Z

When what we actually wanted was:

 X AND (Y OR Z)
This commit is contained in:
Paul Holden
2022-11-29 16:30:35 +00:00
parent 57c1e97bf1
commit 347bb143e7
+1 -1
View File
@@ -285,7 +285,7 @@ class participants_search {
] = $this->get_keywords_search_sql($mappings);
if (!empty($keywordswhere)) {
$wheres[] = $keywordswhere;
$wheres[] = "({$keywordswhere})";
}
if (!empty($keywordsparams)) {