Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2012.5
-
None
Description
Since https://github.com/ezsystems/ezpublish/commit/f69b2fa442e4a1df23b58cd11c39cf6bef9ebede#L2L1932 this commit the Language parameter is not considered any more.
This is due to the fact that eZContentLanguage::languagesSQLFilter() is now called after eZContentLanguage::clearPrioritizedLanguages(). See lines 1934 and 1980.
Steps to reproduce
Try to do a fetch with a language parameter like this:
<?php // Assuming that fre-FR is not in the SiteLanguageList in site.ini var_dump( eZContentObjectTreeNode::subTreeByNodeID( array( 'Language' => 'fre-FR', ), 2 ) );