Skip to content

ISTWCMS-4881: don't automatically add a CAPTCHA when migrating

Note from Ivan @ Evolving Web:

I was working on adding migration of captcha settings and faced the following issue - the newly migrated webform contained only captcha element. The reason for this behavior is here: 0100dafc

It works fine for webforms created via UI because the webform entity is created without any elements. In the case of migration, the webform entity is created with elements, so this presave hook overwrites the existing elements array with a single captcha element.

I'm not able to push a fix to this module, so I'm attaching a patch for uw_sites_all module. [Which Kevin has turned into this merge request.]

Merge request reports