Skip to content

Commit

Permalink
Fixed Canvas imported multiple choice/true false questions
Browse files Browse the repository at this point in the history
  • Loading branch information
kreut committed Oct 3, 2024
1 parent dc406ce commit 188d3f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Question.php
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,11 @@ function formatQtiJson(string $json_type, string $qti_json, $seed, bool $show_so
$qti_array['feedback'][$identifier] = $this->addTimeToS3Images($qti_array['feedback'][$identifier], $domDocument, false);
}
}
} else {
$qti_array['feedback'] = [];
foreach ($feedback_identifiers as $identifier) {
$qti_array['feedback'][$identifier] = '';
}
}
}

Expand Down

0 comments on commit 188d3f6

Please sign in to comment.