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

ezjscServerFunctionsJs::search - results are not sorted by date

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      ez 4.5 enterprise

      Description

      Hi,

      the results of
      ezjscServerFunctionsJs::search

      are not sorted by date as it should.

      line 376

      $params = array( 'SearchOffset' => $searchOffset,
                               'SearchLimit' => $searchLimit,
                               'SortArray' => array( 'published', 0 )
              );
      

      should be

      $params = array( 'SearchOffset' => $searchOffset,
                               'SearchLimit' => $searchLimit,
                               'SortBy' => array( array( 'published', 0 ) )
              );
      

      Best wishes,
      Georg.

        Attachments

          Activity

            People

            Assignee:
            dp@ez.no Damien Pobel (eZ)
            Reporter:
            emil.webber Georg Franz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: