Fixing copy course with the new field iid

skala
Julio Montoya 12 years ago
parent 0987096e13
commit 158ebc34da
  1. 3
      main/coursecopy/classes/CourseBuilder.class.php
  2. 2
      main/coursecopy/classes/Quiz.class.php

@ -117,7 +117,8 @@ class CourseBuilder {
foreach ($this->tools_to_build as $tool) {
$function_build = 'build_'.$tool;
$this->$function_build($session_id, $course_code, $with_base_content, $this->specific_id_list[$tool]);
$specificIdList = isset($this->specific_id_list[$tool]) ? $this->specific_id_list[$tool] : null;
$this->$function_build($session_id, $course_code, $with_base_content, $specificIdList);
}
if (!empty($session_id) && !empty($course_code)) {

@ -30,7 +30,7 @@ class Quiz extends Resource
function Quiz($obj) {
$this->obj = $obj;
$this->obj->quiz_type = $this->obj->type;
parent::Resource($obj->id, RESOURCE_QUIZ);
parent::Resource($obj->iid, RESOURCE_QUIZ);
}
/**

Loading…
Cancel
Save