Cannot Save Webform With Overridden Settings Handler in Drupal 9.5

Created on 6 June 2023, about 1 year ago
Updated 8 June 2023, about 1 year ago

Problem/Motivation

When attempting to save a web form that has overridden settings and/or properties, the system throws a Drupal\webform\WebformException and refuses to save. The issue is occurring after configuring a settings override handler and changing the "Confirmation URL".

Steps to reproduce

1. Set up a new Drupal 9.5 installation.
2. Install and enable the โ€œwebform" module.
3. Edit an existing web form or create a new one.
4. Go to the settings, open the โ€œEmails/Handlersโ€ tab, and create a new settings override handler.
5. Change the "Confirmation URL" within this handler.
6. Save the handler and the handler's form.
7. Return to edit the form builder.
8. Attempt to change the web form and save.

Expected Behavior

The web form should save successfully, even with overridden settings and/or properties.

Actual Behavior

The system throws a Drupal\webform\WebformException and refuses to save the web form. The error message is as follows:

Drupal\webform\WebformException: The Contact webform [contact] has overridden settings and/or properties and can not be saved. in Drupal\webform\Entity\Webform->preSave() (line 2312 of /var/www/html/web/modules/contrib/webform/src/Entity/Webform.php).

Scope of the Issue

This issue was tested and replicated on two PHP versions, 8.0 and 8.1, indicating that it is not related to the PHP version. The issue appears to be related to the webform module within Drupal 9.5.

๐Ÿ› Bug report
Status

Closed: duplicate

Version

6.1

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands jneuteboom

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

Comments & Activities

Production build 0.69.0 2024