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

Regression: 'Language' parameter not considered any more in eZContentObjectTreeNode::subTreeByNodeID()

    XMLWordPrintable

Details

    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
          )
      );
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours, 40 minutes
                1d 5h 40m