mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 22:20:00 +01:00
Merge branch 'MDL-47651' of git://github.com/timhunt/moodle
This commit is contained in:
commit
6c75bcb5d6
@ -132,6 +132,10 @@ class quiz_first_or_all_responses_table extends quiz_last_responses_table {
|
||||
*/
|
||||
public function get_summary_after_try($tablerow, $slot) {
|
||||
$qa = $this->get_question_attempt($tablerow->usageid, $slot);
|
||||
if (!($qa->get_question() instanceof question_manually_gradable)) {
|
||||
// No responses, and we cannot call summarise_response below.
|
||||
return null;
|
||||
}
|
||||
$submissionsteps = $qa->get_steps_with_submitted_response_iterator();
|
||||
$step = $submissionsteps[$tablerow->try];
|
||||
if ($step === null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user