Explorar el Código

Fix course list when user is not student boss - refs BT#9442

Angel Fernando Quiroz Campos hace 10 años
padre
commit
5106e2d391
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      main/gradebook/certificate_report.php

+ 4 - 0
main/gradebook/certificate_report.php

@@ -72,7 +72,11 @@ if ($selectedSession > 0) {
 }
 
 foreach ($coursesList as $course) {
+    if (isset($course['real_id'])) {
+        $courses[$course['real_id']] = $course['title'];
+    } else {
     $courses[$course['id']] = $course['title'];
+    }
 }
 
 for ($key = 1; $key <= 12; $key++) {