Skip to content

Commit

Permalink
MDL-76849 qtype_match: Include question number in answer fields
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Mar 9, 2023
1 parent 9ddbc2d commit 7b6ff44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion question/type/match/renderer.php
Expand Up @@ -77,8 +77,9 @@ public function formulation_and_controls(question_attempt $qa,
$feedbackimage = $this->feedback_image($fraction);
}

$labeltext = $options->add_question_identifier_to_label(get_string('answer', 'qtype_match', $i));
$result .= html_writer::tag('td',
html_writer::label(get_string('answer', 'qtype_match', $i),
html_writer::label($labeltext,
'menu' . $qa->get_qt_field_name('sub' . $key), false,
array('class' => 'accesshide')) .
html_writer::select($choices, $qa->get_qt_field_name('sub' . $key), $selected,
Expand Down

0 comments on commit 7b6ff44

Please sign in to comment.