Skip to content

Commit

Permalink
Fixed #955 Incorrect record no for load all pages type
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Aug 20, 2023
1 parent 04abf5e commit ad9b64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FetchXmlBuilder/DockControls/ResultGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal void SetData(QueryInfo queryinfo)
}
if (queryinfo.RecordFrom > -1 && queryinfo.RecordTo > -1)
{
if (queryinfo.RecordFrom > 1 || queryinfo.Results.MoreRecords)
if (!form.settings.Results.RetrieveAllPages && (queryinfo.RecordFrom > 1 || queryinfo.Results.MoreRecords))
{
mnuRecordsNumbers.Text = $"Records: {queryinfo.RecordFrom}-{queryinfo.RecordTo}";
if (queryinfo.Results.TotalRecordCount > 0 && queryinfo.Results.TotalRecordCount < 5000)
Expand All @@ -67,7 +67,7 @@ internal void SetData(QueryInfo queryinfo)
}
else
{
mnuRecordsNumbers.Text = $"Records: {queryinfo.RecordTo}";
mnuRecordsNumbers.Text = $"Records: {queryinfo.Results.Entities.Count}";
}
mnuRecordsNumbers.Visible = true;
}
Expand Down

0 comments on commit ad9b64b

Please sign in to comment.