Skip to content

Commit

Permalink
Merge pull request #2804 from gautamdsheth/bugfix/2785
Browse files Browse the repository at this point in the history
Fix #2785 : issue with RowLimit not being respected when specified from CAML query
  • Loading branch information
KoenZomers authored Feb 15, 2023
2 parents 01b85ae + 635c5c2 commit a55f6b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Removed `Get-PnPSubscribeSharePointNewsDigest` and `Set-PnPSubscribeSharePointNewsDigest` cmdlet as the implementation behind these features has been changed in SharePoint Online causing them no longer to work. At present, there's no alternative for this that we can call into.
- Fixed issue with `Invoke-PnPSPRestMethod` and `Invoke-PnPGraphMethod` throwing error when passing complex JSON object as payload. [#2802](https://github.com/pnp/powershell/pull/2802)
- Fixed issue with `Add-PnPListItem` and `Set-PnPListItem` not correctly setting the Purview `Unlocked by default`. [#2800](https://github.com/pnp/powershell/pull/2800)
- Fixed issue with `Get-PnPListItem` cmdlet not respecting `RowLimit` in the CAML query.

### Contributors

Expand Down
5 changes: 4 additions & 1 deletion src/Commands/Lists/GetListItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ protected override void ExecuteCmdlet()
ScriptBlock.Invoke(listItems);
}

query.ListItemCollectionPosition = listItems.ListItemCollectionPosition;
if (HasPageSize())
{
query.ListItemCollectionPosition = listItems.ListItemCollectionPosition;
}
} while (query.ListItemCollectionPosition != null);
}
}
Expand Down

0 comments on commit a55f6b1

Please sign in to comment.