-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Translation issues with modal admin #129
Comments
Looking at it very quickly.... That chunk of code is iterating through the hosting entity's field's delta to assign them a the paragraph entity, as in $node->field_name['en'][$delta]['entity'] = paragraph_entity So I think the problem is with the host entity. It looks like the field in that host entity (the node) doesn't have a language code. Not sure why. |
Thanks for checking, @argiepiano -- it does look like fields are not being saved with language codes (at least on a number of my sites, I haven't spun up a blank site to test yet). That does seem strange! |
I linked a PR that solves it for now: https://github.com/backdrop-contrib/paragraphs/pull/130/files Maybe it won't be needed if we track down why Backdrop fields seem to be always set to LANGUAGE_NONE. |
Updating the top as it also seems to affect the modal sorting... |
…admin. Fixes #129. By @laryn and @argiepiano.
I added locale/translation on a site and when a page has a language set, the modal admin won't save new paragraphs from the front end. Log shows:
Modal sorting is also affecting when languages are involved:
The text was updated successfully, but these errors were encountered: