Email Handler is not working based on conditions on Resend Page

Created on 23 May 2023, almost 2 years ago
Updated 20 October 2023, over 1 year ago

Problem/Motivation

Webform submission's Resend Page shows email handlers configured on the webform. But the list shows all the email handlers. It should not show all but it should work based on condition we applied on email handler's condition. Is this expected bahaviour?

Steps to reproduce

  1. Install webform module.
  2. Go to build page and add the Send to, a select field. Options are Email, Phone, Address.
  3. Go contact webform's settings and click email hanlers tab.
  4. Added few email handlers. Add condition with Select to Field if value is Email.
  5. Create some test webform submission
  6. Go to webform submission which has select to field value is Email. Go to resend page of same submission.
  7. Look for email handler is available in the list.
  8. Now go other submission which has select to field value is not email. Check email handler list. Here email handler should not show. But it will show all the handlers.

Proposed resolution

We need to check conditions on WebformSubmissionResendForm before showing the email handler list.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇮🇳India iyyappan.govind Chennai, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024