Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…aded question types
  • Loading branch information...
commit ed9cc071d580630ff051f172d64fe335a5b9d3a1 1 parent 41b4bb0
@davosmith davosmith authored danpoltawski committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  question/engine/upgrade/upgradelib.php
View
3  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';
Please sign in to comment.
Something went wrong with that request. Please try again.