Problem/Motivation

When adding a production form to our staging environment, we also change the connector in the webform handler to the staging environment. This deletes all elements from the webform, even though the same form processor is present on the staging connector.

The code responsible for this seems to be the FormProcessorWebformHandler::submitConfigurationForm() method:

$builder->addFields($values['additional']['fields']['field'], $fpFields, $connection, $formProcessor, $skipAddingFields);
$builder->deleteFields($values['additional']['fields']['field']);

Proposed resolution

?

CommentFileSizeAuthor
#2 2026-03-26_16-58.png181.97 KBjaapjansma
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dieterholvoet created an issue. See original summary.

jaapjansma’s picture

StatusFileSize
new181.97 KB

I have added a screenshot with a configuration setting on the handler to prevent this.

Screenshot of workaround

dieterholvoet’s picture

That option is turned off, so I guess that's the issue.

dieterholvoet’s picture

Status: Active » Needs review
dieterholvoet’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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