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.
While using SCALD's atom reference field within a paragraph (paragraphs module), I've noticed that the Atom's Representation context is not accurate when returning to the paragraph's edit form. The value is properly saved, but the form state is not accurate when editing the paragraph.
To replicate the issue:
paragraphs module
- atom reference field (allowing contextual override)
- set the paragraphs form to 'collapsed' by default.
I'll see if I can track down more details, but it sounds related to this issue
Comment | File | Size | Author |
---|---|---|---|
#4 | presentation_text_not_shown-2820194.patch | 812 bytes | mario_prkos |
Comments
Comment #2
willito CreditAttribution: willito commentedComment #3
nagy.balint CreditAttribution: nagy.balint commentedYou can test if that patch solves your issue.
Comment #4
mario_prkos CreditAttribution: mario_prkos at Agence Inovae commentedThe problem apear when paragraph calls validation function field_attach_form_validate and then that function calls the field_default_extract_form_values. In that case values from the field settings are replaced by the value from form which is already serialized array. The proposed patch instead of try to unserialized already serialized array just take the existing values of items.