Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0.3, 2.1, 2.2
-
Component/s: Libraries
-
Database:Any
-
Testing Instructions:
-
Difficulty:Easy
-
Affected Branches:MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
Fixed Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
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
Attachments
Issue Links
- is duplicated by
-
MDL-25277 Cannot search by shortname in course search
-
- Closed
-