Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.1.3
-
None
-
Operating System: Any
PHP Version: (please be specific, like '4.4.3' or '5.1.5'): Any
Database and version: Any
Browser (and version): Any
Description
The method
eZObjectRelationType::metaData( $contentObjectAttribute )
is not extracting metadata from the right translation when publication occurs right after having translated an object into a language different from the siteaccess' main language.
Steps to reproduce
1. From your english siteaccess ( ie : eng-GB as the main language, with other fallback languages, does not matter ), create object A ( one containing an ezobjectrelation attribute ), and relate it to object B. Both A and B only exist in eng-GB for now
2. Translate B in the secondary language ( esl-ES )
3. Translate A to the secondary language, and publish.
At this point, if you insert debug data in the metaData() method, you will notice that the content object metadata generation is based on ( B ) is in eng-GB, and not esl-ES.