OrderContext.Current.FindPurchaseOrders returns 0 totalRecords if StartingRecord out of range

Fixed in

EPiServer.Commerce 11.2.5

Created

Sep 17 2017

Updated

Sep 29 2017

Area

Core

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. There are 20 orders.
  2. Search for a purchase order using OrderContext.Current.FindPurchaseOrders with StartingRecord set to 25.

Expected:
Return totalRecords = 20.

Actual:
Return totalRecords = 0.

Report from http://world.episerver.com/forum/developer-forum/Problems-and-bugs/Thread-Container/2017/6/ordercontext.current.findpurchaseorders---no-totalrecords-when-startingrecord-exceeds-actual-total-records/?pageIndex=1#reply