Problem/Motivation

Saving the build elements throws the exception:

Drupal\webform\WebformException: The Demo: Event Registration webform [demo_event_registration] has overridden settings and/or properties and can not be saved. in Drupal\webform\Entity\Webform->preSave() (line 2312 of /var/lib/tugboat/stm/web/modules/contrib/webform/src/Entity/Webform.php).

Steps to reproduce

- launch a test environment on simplytest.me for Drupal 9.5.8
- add module webform and (under advance section) module token
- enable "Webform Demo: Event Registration System" (and related modules) from the section "Webform Demo"
- navigate to the webform: /admin/structure/webform/manage/demo_event_registration
- hit the button "Save elements"
- check watchdog: there is the exception mentioned above
- navigate to the webform handlers: /admin/structure/webform/manage/demo_event_registration/handlers
- DISABLE handler "Submission limit"
- navigate back to the webform an save the elements again: no exception, elements were saved

Additional Information

- tested locally with php versions 7.4 8.0 8.1 => error occurs on all versions

CommentFileSizeAuthor
#2 3358820-2.patch667 bytesjrockowitz

Comments

heikofischer created an issue. See original summary.

jrockowitz’s picture

Version: 6.2.0-beta5 » 6.1.x-dev
Status: Active » Needs review
StatusFileSize
new667 bytes

  • jrockowitz authored 76abb06b on 6.1.x
    Issue #3358820 by jrockowitz: Exception in Demo Module Event...
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz authored 76abb06b on 6.x
    Issue #3358820 by jrockowitz: Exception in Demo Module Event...

  • jrockowitz authored 76abb06b on 6.2.x
    Issue #3358820 by jrockowitz: Exception in Demo Module Event...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.