Merge branch 'MDL-80240-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE

This commit is contained in:
Ilya Tregubov
2024-03-19 10:28:13 +08:00
+1 -1
View File
@@ -492,7 +492,7 @@ abstract class grade_report {
[
'where' => $keywordswhere,
'params' => $keywordsparams,
] = $this->get_users_search_sql($mappings, (array)$userfields);
] = $this->get_users_search_sql($mappings, $userfields->get_required_fields());
$this->userwheresql .= " AND $keywordswhere";
$this->userwheresql_params = array_merge($this->userwheresql_params, $keywordsparams);
}