Permalink
Browse files

MDL-32213 Question upgrade now correctly handles non-core manually-gr…

…aded question types
  • Loading branch information...
1 parent 7d7331b commit a006cb40cb1555eee76e9c0c6f310b259702d70c @davosmith davosmith committed with danpoltawski Mar 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 question/engine/upgrade/upgradelib.php
@@ -356,7 +356,8 @@ protected function get_converter_class_name($question, $quiz, $qsessionid) {
return 'qbehaviour_manualgraded_converter';
}
}
- if ($question->qtype == 'essay') {
+ $qtype = question_bank::get_qtype($question->qtype, false);
+ if ($qtype->is_manual_graded()) {
return 'qbehaviour_manualgraded_converter';
} else if ($question->qtype == 'description') {
return 'qbehaviour_informationitem_converter';

0 comments on commit a006cb4

Please sign in to comment.