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

eZContentObjectTreeNode::subTreeByNodeID language / attribute filter bug

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • None
    • Misc
    • 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

        Activity

          People

            jv@ez.no jv@ez.no
            rc@ez.no rc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: