Skip to content

Commit da9e25c

Browse files
committed
Add course numbers in list
* Course with similar names can be identified correctly
1 parent ea97727 commit da9e25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edit_form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function specific_definition($mform) {
5050
$courses = (core_course_category::get(0))->get_courses(['recursive' => true]);
5151
$courseitems = [];
5252
foreach ($courses as $c) {
53-
$courseitems[$c->id] = $c->get_formatted_name();
53+
$courseitems[$c->id] = " {$c->get_formatted_name()} ($c->id)";
5454
}
5555
$repeatarray = array();
5656
$repeatedoptions = array();

0 commit comments

Comments
 (0)