Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Document Translation handling creates none-deletable records #4382
It should never be the case, that an document translation can not be deleted.
As soon as an translation record exists, it has to be deletable, because otherwise pimcore throws an Exception stating that there is already an relation and you can not create a new one.
Let's say we have a document with id 46 and one with 47. Both have no explicit language selected, but the parent of 46 is german and the parent of 47 english.
One would expect that when on of the documents is linked, the parent's document language would be used, but no
this is what documents_translations looks like, when you link 46 to 47:
the language is empty.
Pimcore let you create another link, because it does not recognize the existing one and if you do so you will get this exception:
But you can't because you don't see it.
Steps to reproduce
Link a document without language with another document without language.