Closed (fixed)
Project:
Drupagram
Version:
7.x-1.x-dev
Component:
API Integration / Library
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2017 at 16:49 UTC
Updated:
4 May 2020 at 18:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dasginganinjaThe $values variable that get passed into the render function for the caption field handler gets unserialized at the start of the function. When the unserialized data, $caption, has a NULL value we replace that with an empty array to allow core's theme function to extend the data it is expecting.
Ideally we should be correcting the data before it gets serialized so that we don't have to worry about it unserialize to a NULL value but this fixes the current behavior.
Comment #3
dasginganinjaComment #4
daniel korteComment #6
daniel korteSimplified the patch in commit. Thanks!