feat: Enhances question detail display in reports
Displays question name and text in report tables to improve clarity of user responses alongside their grades. Improves readability and context by enriching question details.
This commit is contained in:
parent
77614bc8c3
commit
1dac3d1e99
1 changed files with 2 additions and 3 deletions
|
@ -68,7 +68,7 @@ if ($mform->is_cancelled()) {
|
|||
|
||||
foreach ($question_grades as $question_grade) {
|
||||
if ($question_grade->fraction) {
|
||||
$attempt_table->data[] = array($question->name, $response, $question_grade->fraction);
|
||||
$attempt_table->data[] = array($question->name . ': ' . $question->questiontext, $response, $question_grade->fraction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,6 @@ if ($mform->is_cancelled()) {
|
|||
$total_grade = $DB->get_record('quiz_grades', array('quiz' => $quiz->id, 'userid' => $user->id));
|
||||
|
||||
echo $OUTPUT->heading(get_string('totalgrade', 'report_usergrades') . ': ' . $total_grade->grade . ' / ' . $quiz->grade, 6);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue