Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Undefined property LongAnswerResponse::$answer_feedback in LongAnswerResponse->getReportFormAnswerFeedback() in long_answer_classes.inc in result screen. This happens when I skip a long answer question in a quiz.
Comments
Comment #1
selvamkf CreditAttribution: selvamkf commentedWe managed to fix this. In long_answer_classes.inc , replace this line
'#default_value' => $this->answer_feedback with
'#default_value' => isset($this->answer_feedback) ? $this->answer_feedback : '',
Comment #2
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedThank you. Fix committed to git (b95c6a9..085361e).
Comment #4
eyenology CreditAttribution: eyenology commentedI ran across this same error with, but with ShortAnswerResponse. The same fix in #1 worked in short_answer.classes.inc
Comment #5
eyenology CreditAttribution: eyenology commentedComment #11
fox mulder CreditAttribution: fox mulder commentedI can not reopen this, but as eyenology wrote (#4) same error exists in quiz/question_types/short_answer/short_answer.classes.inc too
Version: Quiz-7.x-5.1
Comment #12
yurg CreditAttribution: yurg as a volunteer commentedCan confirm #11 works for Quiz-7.x-5.1