Deprecated warning:
Warning: Undefined property: LongAnswerResponse::$result_answer_id in LongAnswerResponse:->score()(Rule 287 in contrib/quiz/question_types/long_answer/long_answer.classes.inc)

Comments

Wishal.f created an issue. See original summary.

Wishal.f’s picture

StatusFileSize
new328 bytes
johan den hollander’s picture

Title: Deprecated warning » Warning: Undefined property: LongAnswerResponse::$result_answer_id
esthertempel’s picture

StatusFileSize
new494 bytes

The first patch gave an error because it could not acces the protected property. Therefore I changed it to public in this new patch.

esthertempel’s picture

StatusFileSize
new822 bytes

My previous patch gave another error for the LongAnswer because of the result_answer_id not being initialized.

  • smustgrave committed fbf23e21 on 7.x-5.x
    Issue #3355377 by EstherTempel, Wishal.f: Warning: Undefined property:...
smustgrave’s picture

Status: Needs review » Fixed

Change was small enough don't mind including in one of last few releases for D7 quiz.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.