Details
-
Improvement
-
Resolution: Fixed
-
High
-
2015.11
-
None
Description
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:
- Create a content with the always available flag in eng-GB (for instance a Folder)
- Translate it into French (or whatever)
- 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
Attachments
Issue Links
- blocks
-
EZP-25133 Allow to edit a draft version of a content
- Closed