Explorar el Código

Fix course code that generates error in learningpath copy --ref BT#10701 #TMI

Nicolas Ducoulombier hace 9 años
padre
commit
97ed9c82cf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main/coursecopy/classes/CourseBuilder.class.php

+ 1 - 1
main/coursecopy/classes/CourseBuilder.class.php

@@ -80,7 +80,7 @@ class CourseBuilder
         }
 
         $this->course = new Course();
-        $this->course->code = $_course['official_code'];
+        $this->course->code = $_course['code'];
         $this->course->type = $type;
         $this->course->path = api_get_path(SYS_COURSE_PATH).$_course['path'].'/';
         $this->course->backup_path = api_get_path(SYS_COURSE_PATH).$_course['path'];