// If $action->event is not set that implies saving
if (! isset($action->event)) {
+ debugging('Ambiguous action in question_process_responses.' , DEBUG_DEVELOPER);
$action->event = QUESTION_EVENTSAVE;
}
// If submitted then compare against last graded
foreach($questionidarray as $i) {
if (!isset($actions[$i])) {
$actions[$i]->responses = array('' => '');
+ $actions[$i]->event = QUESTION_EVENTSAVE;
}
$actions[$i]->timestamp = $timestamp;
question_process_responses($questions[$i], $states[$i], $actions[$i], $quiz, $attempt);