"Show the notification about previous submissions" doesn't work as expected when webform is attached to paragraph

Created on 7 May 2021, over 3 years ago
Updated 28 May 2023, over 1 year ago

Problem/Motivation

When webform is referenced directly to paragraph the "Show the notification about previous submissions" option doesn't work and notification about submission isn't displayed for this webform. I think that the reason is setting source entity as the main source entity (node) in WebformSubmissionForm class when in the WebformMessageManager class the source entity is paragraph.

Steps to reproduce

1. Add paragraph type with field referenced to webform
2. Create webform with enabled "Show the notification about previous submissions" option
3. Add node with paragraph that references to that webform
4. Submit webform and check if notification about submissions is displayed

Proposed resolution

1. Get previous submissions based on direct parent of webform

πŸ› Bug report
Status

Active

Version

5.25

Component

Code

Created by

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