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:41 +00:00
parent efdaed1f70
commit d24c88543d
+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)) {