Filtered Text answer errors on quiz_clone_quiz_result()

Created on 9 July 2019, over 5 years ago
Updated 17 August 2024, 5 months ago

In LongAnswerResponse->save() the db_merge() call is assuming $this->answer is always coming from a form submission, but it's not. When quiz_clone_quiz_result() runs it just has the loaded values from the database, so $this->answer and $this->answer_format should be used instead.

πŸ› Bug report
Status

Needs review

Version

5.0

Component

Code - Short/long answer

Created by

πŸ‡ΊπŸ‡ΈUnited States karlshea Minneapolis πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024