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
?
Comments
Comment #2
jaapjansma commentedI have added a screenshot with a configuration setting on the handler to prevent this.
Comment #3
dieterholvoet commentedThat option is turned off, so I guess that's the issue.
Comment #5
dieterholvoet commentedComment #6
dieterholvoet commented