Browse Source

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

Nicolas Ducoulombier 9 years ago
parent
commit
97ed9c82cf
1 changed files with 1 additions and 1 deletions
  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'];