Active
Project:
Webform
Version:
6.2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Mar 2019 at 09:41 UTC
Updated:
8 Apr 2024 at 13:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
shubhamporwal14@gmail.com commentedComment #3
jrockowitz commentedI am almost certain you are running into #2913548: Source element values are replaced with translated values
The lost elements is being triggered because the default language of your website was changed after the webform was created and translated
Comment #4
jrockowitz commentedComment #5
jrockowitz commentedComment #6
shubhamporwal14@gmail.com commentedI really appreciate if you can go through the steps mentioned above or please do check the video attached in the ticket.
Comment #7
jrockowitz commentedI had no idea that the zip file contained a video. I assumed it was your code.
I could not replicate the issue using the described steps but the video clearly shows the problem. I will try again to replicate the issue.
Comment #8
shubhamporwal14@gmail.com commentedHi Jrockwitx,
Can you please post latest update for the issue.
Thanks in advance !!
Comment #9
jrockowitz commentedI can't replicate this issue.
I did notice in your video that the "You are editing the original English language for this webform." message is missing when viewing the form builder in a different language.
Is your site's default language 'English'? See #3
Comment #10
jrockowitz commentedComment #11
hmdnawaz commentedI'm getting the same issue. Is there any workaround to fix it?
Comment #12
hmdnawaz commentedComment #13
interx commentedI have encountered this as well, but from triggering a bulk action in the webform overview page
I used these steps to reproduce this in a vanilla Drupal install:
Using the default site language (EN)
In the non-default user interface language (FR or NL)
If you execute the action in NL, the form definition will be overwritten with the NL translation. If you do this in the FR interface language, the form definition will be overwritten with the FR translations. Only the translation remains, all other info like the type etc is lost, hence the fallback to Generic element.
Comment #14
remco hoeneveld commentedthere seems to be a fix within the community by combining the following: (this is for Drupal 10.1.* or Drupal 11)
-> https://www.drupal.org/project/drupal/issues/2910353#comment-12422438 Thread of information about the core issue
-> https://git.drupalcode.org/project/drupal/-/merge_requests/6268.diff (diff i created the core patch from)
If you then patch webform with the attached patch after also patching Drupal core then the Config entities cant be overriden anymore.
Comment #15
jrockowitz commented