-
Improvement
-
Resolution: Fixed
-
Critical
-
2.0.3, 2.1, 2.2
-
Any
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_20_STABLE, MOODLE_21_STABLE
-
Easy
-
The latest get_courses_search() does not search the idnumber or shortname.
Around line 720 in /lib/datalib.php
Replace
$concat = $DB->sql_concat('c.summary', "' '", 'c.fullname');
|
With
$concat = $DB->sql_concat('c.summary', "' '", 'c.fullname', "' '",'c.idnumber', "' '", 'c.shortname');
|
Similar issue reported and fixed for 1.9: MDL-19078
- is duplicated by
-
MDL-25277 Cannot search by shortname in course search
- Closed