- 🇳🇱Netherlands seanB Netherlands
The attached patch seems to solve (at least part) of the issue for us. It's probably not a long-term solution, so just uploading this in case it helps anyone.
We have a multilingual site (German - default, English - second language) and enabled config entity translations for webform entities.
The site has a webform which was originally created in English and has a German translation.
English (source) element values:
first_name:
'#title': 'First name'
'#type': textfield
'#required': true
last_name:
'#title': 'Last name'
'#type': textfield
'#required': true
German translation:
first_name:
'#title': Vorname
last_name:
'#title': Nachname
Our site was on webform-beta15 version and we wanted to webform-beta17 version.
After an update to webform-beta17, our webform has disappeared from the page.
After some investigation, we realized that English element (YAML) values were replaced with a German translation and thus lost their field type identifiers which resulted in no display.
This is our understanding of what happened:
Below are the quickest step to reproduce this bug
drush php-eval '\Drupal\webform\Entity\Webform::load('contact')->save()';
Postponed
5.0
Translation
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
The attached patch seems to solve (at least part) of the issue for us. It's probably not a long-term solution, so just uploading this in case it helps anyone.