Skip to content

Commit

Permalink
MDL-32213 Question upgrade now correctly handles non-core manually-gr…
Browse files Browse the repository at this point in the history
…aded question types
  • Loading branch information
davosmith committed Mar 27, 2012
1 parent c856a1f commit 1892a35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion question/engine/upgrade/upgradelib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ protected function get_converter_class_name($question, $quiz, $qsessionid) {
return 'qbehaviour_manualgraded_converter'; 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'; return 'qbehaviour_manualgraded_converter';
} else if ($question->qtype == 'description') { } else if ($question->qtype == 'description') {
return 'qbehaviour_informationitem_converter'; return 'qbehaviour_informationitem_converter';
Expand Down

0 comments on commit 1892a35

Please sign in to comment.