From da4772a276afba41a77c8fc1844645591152935a Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Thu, 16 Jun 2011 16:27:56 +0800 Subject: [PATCH] Backup - mod lesson conversion: apply jumpto fix only to matching question types. --- mod/lesson/backup/moodle1/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/lesson/backup/moodle1/lib.php b/mod/lesson/backup/moodle1/lib.php index a6e643d0358..e6e5d1d06a9 100644 --- a/mod/lesson/backup/moodle1/lib.php +++ b/mod/lesson/backup/moodle1/lib.php @@ -276,7 +276,7 @@ class moodle1_mod_lesson_handler extends moodle1_mod_handler { $numanswers = count($answers); if ($numanswers) { //if there are any answers (possible there are none!) - if ($numanswers > 3) { + if ($numanswers > 3 && $page->data['qtype'] == 5) { //fix only jumpto only for matching question types. if ($answers[0]['jumpto'] !== '0' || $answers[1]['jumpto'] !== '0') { if ($answers[2]['jumpto'] !== '0') { $answers[0]['jumpto'] = $answers[2]['jumpto'];