When LongAnswerQuestion loads its own node properties it overwrites the parent $props array instead of appending to it. This causes issues when extending the class because the normal props don't exist. Other question types use array_merge() to add their props instead of overwriting.

CommentFileSizeAuthor
#2 long-question-props-3063178-2.patch936 byteskarlshea

Comments

KarlShea created an issue. See original summary.

karlshea’s picture

Status: Active » Needs review
StatusFileSize
new936 bytes

Patch attached

  • djdevin committed 7d621fb on 7.x-5.x authored by KarlShea
    Issue #3063178 by KarlShea: Long Answer clears parent properties in...
djdevin’s picture

Status: Needs review » Fixed

Looks good - thanks!

Status: Fixed » Closed (fixed)

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