[Paragraphs] Email handler sends "_default" in body when embedding webform in Paragraph

Created on 18 August 2022, almost 2 years ago
Updated 7 October 2023, 9 months ago

Problem/Motivation

When embedding a Webform with a rather default Email handler configuration (body field) in a Paragraph, the configuration value for the body gets wrapped in <p> tags, resulting in an Email containing the string "_default" in the body.

Steps to reproduce

  • Create a webform with a body field
  • Configure an Email handler with "Default" as template for the body field
  • Embed the webform in a Paragraph
  • Submit values

Proposed resolution

One quick win is to check whether the configuration value is wrapped in <p> tags, which results in normal behaviour replacing the tokens. See first patch in this issue.

Remaining tasks

Check where the <p> tags get injected in the configuration.

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇦🇹Austria daniel.pernold

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.69.0 2024