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

XLIFF Export not working if localized fieldcollection contains a Many-To-Many Relation with at least one element #5351

Closed
eliasfellner opened this issue Nov 28, 2019 · 0 comments
Assignees

Comments

@eliasfellner
Copy link
Contributor

@eliasfellner eliasfellner commented Nov 28, 2019

Expected behavior

XLIFF Export should work with fieldcollections which have a many-to-many-relation (with at least one element) within a localized field.

Actual behavior

DataObjectDataExtractor expects parameter 3 to be a string instead of an array in line 406 -> throws error and export is not completing

Steps to reproduce

  • Create a Class that contains a fieldcollection
  • Said fieldcollection has to contain a localized-field with a multi-relation component in it
    Info: It doesn't matter what kind of multi-relation component
  • Create an Object of the Class you created beforehand, add a fieldcollection Element and add at least one Element to the multi-relation component
  • Go to XLIFF-Export and choose to export the Object you created
  • choose as Source, the language which you filled
  • try to export

Error Line:
https://github.com/pimcore/pimcore/blob/master/lib/Translation/ExportDataExtractorService/DataExtractor/DataObjectDataExtractor.php#L406

@eliasfellner eliasfellner changed the title XLIFF Export not working if localized fieldcollection contains a Many-To-Many Relation with at least one elements XLIFF Export not working if localized fieldcollection contains a Many-To-Many Relation with at least one element Nov 28, 2019
@dvesh3 dvesh3 closed this in 02b475e Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.