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

Fields in main language always included on always available content



      In the REST API, the languages parameter to filter fields on a given language is not working as expect on the load content and load version resources. (not tested but most likely the same issue happens in the Public API)

      For content with the always available flag, the fields in the main language are always included.

      Steps to reproduce:

      1. Create a content with the always available flag in eng-GB (for instance a Folder)
      2. Translate it into French (or whatever)
      3. Run the following command

        curl -H 'Accept: application/vnd.ez.api.Content+json' -H 'Cookie: eZSESSID=t6tcfvvpr0g671bppaf9h7glk7' 'http://ez.loc/api/ezp/v2/content/objects/1?languages=fre-FR'

      it should only return the fields in fre-FR, it actually returns both eng-GB and fre-FR.
      It seems it's related to https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Repository/ContentService.php#L377-L396

        Issue Links


          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          10s 1 damien.pobel@ez.no 24/Nov/15 6:20 PM
          Confirmed Confirmed Backlog Backlog
          1h 49m 1 André Rømcke 24/Nov/15 8:10 PM
          Backlog Backlog Development Development
          18h 17m 1 André Rømcke 25/Nov/15 2:27 PM
          Development Development Development Review Development Review
          12m 17s 1 André Rømcke 25/Nov/15 2:40 PM
          Development Review Development Review Documentation Review done Documentation Review done
          1d 21h 32m 1 Bertrand Dunogier 27/Nov/15 12:13 PM
          Documentation Review done Documentation Review done QA QA
          3d 5h 11m 1 rui.silva@ez.no 30/Nov/15 5:24 PM
          QA QA Closed Closed
          18h 23m 1 rui.silva@ez.no 01/Dec/15 11:47 AM


            • Assignee:
              Damien Pobel (Inactive)
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: