Skip to content

Commit

Permalink
Fix quiz restore see BT#13344
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Sep 11, 2017
1 parent 061f923 commit 4bb5269
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -1800,9 +1800,15 @@ public function restore_quizzes(
'end_time' => $quiz->end_time,
'save_correct_answers' => 0,
'display_category_name' => 0,
'save_correct_answers' => $quiz->save_correct_answers,
'hide_question_title' => isset($quiz->hide_question_title) ? $quiz->hide_question_title : 0,
);

$allow = api_get_configuration_value('allow_notification_setting_per_exercise');
if ($allow) {
$params['notifications'] = $quiz->notifications;
}

if ($respect_base_content) {
$my_session_id = $quiz->session_id;
if (!empty($quiz->session_id)) {
Expand Down

0 comments on commit 4bb5269

Please sign in to comment.