mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 18:45:54 +08:00
#19525: Fixing pager when Offset is defined in Projections
Work Item: Mirza --HG-- branch : 1.x
This commit is contained in:
parent
4a3fd1a75d
commit
ea5fc5f13e
@ -122,7 +122,8 @@ namespace Orchard.Projections.Drivers {
|
||||
|
||||
// create pager shape
|
||||
if (part.Record.DisplayPager) {
|
||||
var contentItemsCount = _projectionManager.GetCount(query.Id);
|
||||
var contentItemsCount = _projectionManager.GetCount(query.Id) - part.Record.Skip;
|
||||
contentItemsCount = Math.Max(0, contentItemsCount);
|
||||
pagerShape.TotalItemCount(contentItemsCount);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user