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

Document Translation handling creates none-deletable records #4382

maufwind opened this issue May 16, 2019 · 0 comments


None yet
1 participant
Copy link

commented May 16, 2019

Bug Report

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.

Expected behavior

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

Actual behavior

this is what documents_translations looks like, when you link 46 to 47:

'id', 'sourceId', 'language'
'47', '46', ''

the language is empty.
And that's it, the document is doomed now. No way to fix this, without database access.

Pimcore let you create another link, because it does not recognize the existing one and if you do so you will get this exception:
"Target Document already linked to Source Document ID(46). Please unlink existing relation first."

But you can't because you don't see it.

Steps to reproduce

Link a document without language with another document without language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.