Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Backup - mod lesson conversion: apply jumpto fix only to matching que…

…stion types.
  • Loading branch information...
commit da4772a276afba41a77c8fc1844645591152935a 1 parent 914bfea
@nebgor nebgor authored stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/lesson/backup/moodle1/lib.php
View
2  mod/lesson/backup/moodle1/lib.php
@@ -276,7 +276,7 @@ protected function write_single_page_xml($page, $prevpageid=0, $nextpageid=0) {
$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'];
Please sign in to comment.
Something went wrong with that request. Please try again.