Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
-
eZ Publish 4.4
Description
eZContentObjectTreeNode::subTreeByNodeID does not respect Language parameter if AttributeFilter is also set.
In current trunk, line 1887 has the function eZContentLanguage::setPrioritizedLanguages( $language ). However,
$attributeFilter = eZContentObjectTreeNode::createAttributeFilterSQLStrings is called on line 1863, before the prioritized language global variable has been changed.
The result is you can only use an attribute filter with current siteaccess language settings.
Steps to reproduce
eZContentObjectTreeNode::subTreeByNodeID(array('Language' => array('eng-EU'), 'AttributeFilter' => array(array('folder/name', '!=', ''))), $NodeID);
this will NOT fetch folders in a given subtree that have 'eng-EU' as their sole language (no fallback) id the current siteaccess does not have 'eng-EU' in it's language list.
It should.
Attachments
Issue Links
- relates to
-
EZP-20284 Extended attribute filtering not working after EZP-19158
- Closed