mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 22:15:24 +02:00
MDL-77825 grade_gradereport: MS SQL fix for user search
This commit is contained in:
parent
fba0658777
commit
d017cb5d52
@ -479,7 +479,7 @@ abstract class grade_report {
|
||||
// When a user wants to view a particular user rather than a set of users.
|
||||
// By omission when selecting one user, also allow passing the search value around.
|
||||
if ($this->userid !== -1) {
|
||||
$this->userwheresql .= ' AND '.$DB->sql_equal('u.id', ':uid');
|
||||
$this->userwheresql .= " AND u.id = :uid";
|
||||
$this->userwheresql_params['uid'] = $this->userid;
|
||||
}
|
||||
|
||||
@ -493,7 +493,7 @@ abstract class grade_report {
|
||||
'where' => $keywordswhere,
|
||||
'params' => $keywordsparams,
|
||||
] = $this->get_users_search_sql($mappings, (array)$userfields);
|
||||
$this->userwheresql = " AND $keywordswhere";
|
||||
$this->userwheresql .= " AND $keywordswhere";
|
||||
$this->userwheresql_params = array_merge($this->userwheresql_params, $keywordsparams);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user