mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-50341' of git://github.com/timhunt/moodle
This commit is contained in:
commit
df0a584485
@ -308,7 +308,12 @@ abstract class question_behaviour {
|
||||
} else {
|
||||
$stepswithsubmit = $this->qa->get_steps_with_submitted_response_iterator();
|
||||
if ($whichtries == question_attempt::FIRST_TRY) {
|
||||
return $this->question->classify_response($stepswithsubmit[1]->get_qt_data());
|
||||
$firsttry = $stepswithsubmit[1];
|
||||
if ($firsttry) {
|
||||
return $this->question->classify_response($firsttry->get_qt_data());
|
||||
} else {
|
||||
return $this->question->classify_response(array());
|
||||
}
|
||||
} else {
|
||||
$classifiedresponses = array();
|
||||
foreach ($stepswithsubmit as $submittedresponseno => $step) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user