Skip to content

Issue-292: Guard against null values in webtools_snippet format…#293

Open
ioanaa20 wants to merge 1 commit intoopeneuropa:masterfrom
ioanaa20:issue_292
Open

Issue-292: Guard against null values in webtools_snippet format…#293
ioanaa20 wants to merge 1 commit intoopeneuropa:masterfrom
ioanaa20:issue_292

Conversation

@ioanaa20
Copy link

@ioanaa20 ioanaa20 commented Oct 2, 2025

…ter.

OPENEUROPA-[292]

Description

[Update WebtoolsSnippetFormatter to decode the field value and skip rendering when the result is not an array.]

Change log

  • Added:
  • Changed:
  • Deprecated:
  • Removed:
  • Fixed:
  • Security:

Commands

[Insert commands here]

@ioanaa20 ioanaa20 changed the title oe_webtools_292: Guard against null values in webtools_snippet format… Issue-292: Guard against null values in webtools_snippet format… Oct 2, 2025
Copy link
Contributor

@vever001 vever001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected.

Layout builder generates entities for the preview (in \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage::getContextsDuringPreview).
json_field has currently a bug which has been solved but not released yet https://www.drupal.org/i/3548180

And oe_webtools should indeed guard against invalid json.
So +1, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants