From adc1e421faae564c55e2d7812467889242a56593 Mon Sep 17 00:00:00 2001 From: AndreiMaz Date: Mon, 22 Aug 2016 09:10:40 +0300 Subject: [PATCH] One more issue fixed with "Pickup in store" provider. Paging didn't properly work --- .../Controllers/PickupInStoreController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Plugins/Nop.Plugin.Pickup.PickupInStore/Controllers/PickupInStoreController.cs b/src/Plugins/Nop.Plugin.Pickup.PickupInStore/Controllers/PickupInStoreController.cs index c290a82abbd..10395834849 100644 --- a/src/Plugins/Nop.Plugin.Pickup.PickupInStore/Controllers/PickupInStoreController.cs +++ b/src/Plugins/Nop.Plugin.Pickup.PickupInStore/Controllers/PickupInStoreController.cs @@ -68,7 +68,8 @@ public ActionResult List(DataSourceRequest command) if (!_permissionService.Authorize(StandardPermissionProvider.ManageShippingSettings)) return Content("Access denied"); - var model = _storePickupPointService.GetAllStorePickupPoints(0, command.Page - 1, command.PageSize).Select(x => + var pickupPoints = _storePickupPointService.GetAllStorePickupPoints(); + var model = pickupPoints.Select(x => { var store = _storeService.GetStoreById(x.StoreId); return new StorePickupPointModel @@ -85,7 +86,7 @@ public ActionResult List(DataSourceRequest command) return Json(new DataSourceResult { Data = model, - Total = model.Count + Total = pickupPoints.TotalCount }); }