Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-8539

Main location (proxy) looses prioritized languages

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Medium Medium
    • Customer request
    • 4.6.7
    • None
    • None
    • Yes

    Description

      1. Use Ibexa Experience 4.6.7.
      2. Add a second language (e.g. Polish pol-PL).
      3. Create a folder in eng-GB. Add a translation for it.
      4. Use the attached testController and open /test route in the browser, or:
      5. Create a route where you load content via ContentService with the new language and read the content language
      $content = $contentService->loadContent($contentId, ['pol-PL']);
      $content->getField('name')->getLanguageCode()
        1. get mainLocation from content then use the location to get content and its language
      $location = $content->getContentInfo()->getMainLocation();
      $location->getContent()->getField('name')->getLanguageCode()

      Actual result
      The outputted language is different when reading from location.

      Expected result
      The outputted language is the same in both cases.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              pawel.pawlik@ibexa.co Paweł Pawlik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: