Permalink
Browse files

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

…aded question types
  • Loading branch information...
1 parent 41b4bb0 commit ed9cc071d580630ff051f172d64fe335a5b9d3a1 @davosmith davosmith committed with danpoltawski Mar 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 question/engine/upgrade/upgradelib.php
@@ -357,7 +357,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 ed9cc07

Please sign in to comment.