Uploaded image for project: 'Prestashop 1.6'
  1. Prestashop 1.6
  2. PSCSX-9917

WebService "limit" filter not working (WebserviceRequest.php)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.6.1.17, 1.6.1.18
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      example.com/api/combinations?display=[id,reference]&limit=[500,500]&sort=id_ASC&ws_key=XXXXX

      Limit parameter is not working as expected on PS1.6.1.17 (production) nor 1.6.1.18 (fresh local installation)

      First arguments always equal "0".

      It seems the $limitArgs[0] integer casting is not working on line 1170 but working for $limitArgs[1]

      :

      $sql_limit .= ' LIMIT '.(int)($limitArgs[0]).(isset($limitArgs[1]) ? ','.(int)($limitArgs[1]) : '')."\n";// LIMIT X|X, Y
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              REMY Pierre
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: