Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Entries in documents_translations are not referencing each other correclty #15125

Closed
Butterd opened this issue May 5, 2023 · 5 comments
Assignees
Labels

Comments

@Butterd
Copy link

Butterd commented May 5, 2023

Pimcore version

10.5.8

Steps to reproduce

  • Have at least 3 different locales and/or languages configured (as per my case the languages are "de, de_at, de_be, nl")
  • Link Documents to each other using the Translation-Menuitem and selecting "Link existing document"
  • The source language using this method has always been the same ("de" in my case)
  • In some cases - seemingly when trying to link entire subtrees - some links between the languages are missing

Expected / actual behavior

Expected behaviour
You should be able to get to every document no matter your source language.

Actual behaviour
Some connections are missing.
i.e.: You can get to every document from the de language, however the de_at language isn't connected to anyhing according to the documents_translations table.

de Here are the entries using the "de" document's Id as sourceId (note the missing ids 3028 and 4645 in this table)

image

de_at These are the entries using the "de_at" document's Id as sourceId

image

Is there a possibility to clean up the table or is this a wider-spread issue?

@Butterd Butterd added the Bug label May 5, 2023
@dvesh3 dvesh3 modified the milestones: 10.5.22, 10.5.23 May 8, 2023
@fashxp fashxp modified the milestones: 10.5.23, 10.5.24 May 16, 2023
@dvesh3 dvesh3 self-assigned this May 17, 2023
@dvesh3
Copy link
Contributor

dvesh3 commented May 31, 2023

@Butterd sorry, not able to reproduce the issue on latest v10.5.23. The translations are loaded from the source id so it loads all translations except the current.

"In some cases - seemingly when trying to link entire subtrees - some links between the languages are missing" ~ do you mean when using "Paste as New Language Variant (recursive)"? If so, it works too.

@dvesh3
Copy link
Contributor

dvesh3 commented Jun 12, 2023

@Butterd 🏓

@Butterd
Copy link
Author

Butterd commented Jun 13, 2023

"In some cases - seemingly when trying to link entire subtrees - some links between the languages are missing" ~ do you mean when using "Paste as New Language Variant (recursive)"? If so, it works too.

Hi @dvesh3 , apologies for the delay.
Sadly "Paste as New Language Variant" wasn't possible as all possible tranlsations for each document were already in the system.

How this came about, I assume, was as follows:

  • You have 2 Trees de_de and de_at which have all documents linked as translations.
  • You create 2 new Trees that represent the new root of each tree respectively. Let's call them de_de_new and _de/at_new
  • Then you move the all documents from one root to another. i.e. de_de to de_de_new
  • Then we try to remap the translations by linking the new roots as translations.

I hope this helps you find the issue. Thanks

@dvesh3
Copy link
Contributor

dvesh3 commented Jun 16, 2023

still works for me:

de (id: 136) is linked to en (id: 3) with
image

and en (id: 3) linked to fr (id: 215)
image

then you see transitive link between fr (id: 215) & de (id: 136):
image

@dvesh3 dvesh3 removed this from the 10.5.24 milestone Jun 19, 2023
@dvesh3
Copy link
Contributor

dvesh3 commented Jun 26, 2023

Closed as not reproducible. Please feel free to continue the discussion.

@dvesh3 dvesh3 closed this as completed Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants