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

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

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

        Issue Links

          Activity

          Show
          Patrick Allaert (Inactive) added a comment - Fixed in: eZ Publish master: https://github.com/ezsystems/ezpublish/commit/bf105661f425c40f7acc8eda8957928f1472011a
          Hide
          Joao Pingo (Inactive) added a comment -

          Tested on Master using tc-1493
          Passed ... Aproved by QA

          Show
          Joao Pingo (Inactive) added a comment - Tested on Master using tc-1493 Passed ... Aproved by QA

            People

            • Assignee:
              Unassigned
              Reporter:
              Jérôme Vieilledent
            • 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