Fix quiz course copy hide_question_title setting BT#12548

ofaj
jmontoyaa 9 years ago
parent 34735ea010
commit fbb41cde98
  1. 3
      main/exercise/exercise.class.php
  2. 1
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php

@ -167,7 +167,8 @@ class Exercise
$this->review_answers = (isset($object->review_answers) && $object->review_answers == 1) ? true : false;
$this->globalCategoryId = isset($object->global_category_id) ? $object->global_category_id : null;
$this->questionSelectionType = isset($object->question_selection_type) ? $object->question_selection_type : null;
$this->hideQuestionTitle = intval($object->hide_question_title);
$this->hideQuestionTitle = isset($object->hide_question_title) ? (int) $object->hide_question_title : 0;
$sql = "SELECT lp_id, max_score
FROM $table_lp_item

@ -1746,6 +1746,7 @@ class CourseRestorer
'end_time' => $quiz->end_time,
'save_correct_answers' => 0,
'display_category_name' => 0,
'hide_question_title' => isset($quiz->hide_question_title) ? (int) $quiz->hide_question_title : 0,
);
if ($respect_base_content) {

Loading…
Cancel
Save