Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15245

metaData for ezobjectrelation attributes is not always using the right translation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.2.0alpha1
    • 4.1.3
    • Search
    • 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.

      Attachments

        Activity

          People

            nfrp nfrp
            nfrp nfrp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: