-
Bug
-
Resolution: Fixed
-
Minor
-
2.1.5, 2.2.2, 2.3
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MDL-32213_manual_grade_question_upgrade -
The function 'get_converter_class_name' in '/question/engine/upgrade/upgradelib.php' is hard-coded to treat the question type 'essay' as manually-graded, when it should treat all manually-graded question types as manually-graded. I'm not sure quite how clear that last sentence was, so hopefully the fix is a bit clearer - change:
if ($question->qtype == 'essay') {
to:
$qtype = question_bank::get_qtype($question->qtype, false);
if ($qtype->is_manual_graded()) {