Merge branch 'MDL-32213_manual_grade_question_upgrade' of git://github.com/davosmith/moodle

This commit is contained in:
Dan Poltawski 2012-04-02 16:59:10 +08:00
commit aefc7e28ff

View File

@ -357,7 +357,8 @@ class question_engine_attempt_upgrader {
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';