Problem/Motivation
When using a view with multiple languages translated content, if you select a node that is different from the interface language, it doesn't update the translated node, but the interface language.
Steps to reproduce
Create a view using some content type that allows translations, translate a node of that content type to multiple languages, and let it be listed on the view you created. Now try to edit the node in a language that is different from the interface language you are using.
Proposed resolution
Change the formSubmit to account for the language from the node that is being modified.
| Comment | File | Size | Author |
|---|
Issue fork views_bulk_edit-3391433
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
Comment #2
isa.belWe have created a patch for this issue. I will attach it here to be reviewed.
Comment #3
portulacaI don't know if my configuration applies for this issue, I wanted to share info just in case.
I had problems with Views Bulk Edit working on a multilingual site so I tried this patch. It didn't make any difference. Canceling the form works even without this patch, but trying to submit the changes doesn't, with or without this patch.
For me the problem was the required fields, and the patch from https://www.drupal.org/project/views_bulk_edit/issues/3024419#comment-15... didn't help either.
I was able to update my nodes by changing all the Required field options apart from Title (for Title I chose to Append and left it empty).
With that modification to my CT config Views Bulk Edit works, even without the patch above, to update all the node translations, the current interface language node and all the others as well.
Comment #4
parisekWorking for me, thank you
Comment #5
farse commentedI've created a new patch as the original only updated the first translation in the row if there were more than 1 translation, this should update all the selected translations now.
Comment #6
farse commentedsorry, resubmitting patch with correct comment number
Comment #7
farse commentedre-sumbitting, the format of the file was weird for some reason
Comment #8
farse commentedComment #9
anybody@farse could you please turn the last patch into a MR?
Comment #10
anybodyComment #12
anybodyPlease test and review. Would be good to have a test for a multilingual environment!
Comment #13
anybodyComment #14
anybodyComment #15
grevil commentedComment #16
grevil commentedWorks great! Thank you :)
Comment #17
grevil commentedComment #19
grevil commentedAll green! Merging, thanks! :)