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

Created on 18 August 2022, over 2 years ago
Updated 7 October 2023, about 1 year 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.71.5 2024