-
Bug
-
Resolution: Fixed
-
Major
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
- Create a course
- Enrol some users
- Create a custom user profile field of type text input with character limit like 10 (it only allows display user profiles of certain limit)
- On user policies page tick you new field in 'Show user identity' and save changes
- Go to grader report
- Enter some string in search input and click 'View results for YOURSTRING'
There will be an exception like this:
Debug info: ERROR: missing FROM-clause entry for table "uf1d_1" |
LINE 14: ... $6 ESCAPE '\' OR idnumber ILIKE $7 ESCAPE '\' OR uf1d_1.dat... |
^
|
SELECT DISTINCT u.id
|
FROM mdl_user u
|
JOIN (SELECT DISTINCT eu1_u.id
|
FROM mdl_user eu1_u
|
JOIN mdl_user_enrolments ej1_ue ON ej1_ue.userid = eu1_u.id
|
JOIN mdl_enrol ej1_e ON (ej1_e.id = ej1_ue.enrolid AND ej1_e.courseid = $1) |
WHERE 1 = 1 AND eu1_u.deleted = 0) je |
ON je.id = u.id
|
JOIN mdl_role_assignments ra
|
ON u.id = ra.userid
|
|
WHERE ra.roleid = $2 |
AND u.deleted = 0 |
AND ( '' || COALESCE(u.firstname, $3) || ' ' || COALESCE(u.lastname, $4) ILIKE $5 ESCAPE '\' OR email ILIKE $6 ESCAPE '\' OR idnumber ILIKE $7 ESCAPE '\' OR uf1d_1.data ILIKE $8 ESCAPE '\') |
|
AND ra.contextid IN ($9,$10,$11) |
[array (
|
0 => '2', |
1 => '5', |
2 => '', |
3 => '', |
4 => '%h%', |
5 => '%h%', |
6 => '%h%', |
7 => '%h%', |
8 => '30', |
9 => '3', |
10 => '1', |
)]
|
Error code: dmlreadexception
|
- is a regression caused by
-
MDL-76143 Implement search functionality in the Grader report
-
- Closed
-