Skip to content

Commit ad9b64b

Browse files
committed
Fixed #955 Incorrect record no for load all pages type
1 parent 04abf5e commit ad9b64b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FetchXmlBuilder/DockControls/ResultGrid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ internal void SetData(QueryInfo queryinfo)
5757
}
5858
if (queryinfo.RecordFrom > -1 && queryinfo.RecordTo > -1)
5959
{
60-
if (queryinfo.RecordFrom > 1 || queryinfo.Results.MoreRecords)
60+
if (!form.settings.Results.RetrieveAllPages && (queryinfo.RecordFrom > 1 || queryinfo.Results.MoreRecords))
6161
{
6262
mnuRecordsNumbers.Text = $"Records: {queryinfo.RecordFrom}-{queryinfo.RecordTo}";
6363
if (queryinfo.Results.TotalRecordCount > 0 && queryinfo.Results.TotalRecordCount < 5000)
@@ -67,7 +67,7 @@ internal void SetData(QueryInfo queryinfo)
6767
}
6868
else
6969
{
70-
mnuRecordsNumbers.Text = $"Records: {queryinfo.RecordTo}";
70+
mnuRecordsNumbers.Text = $"Records: {queryinfo.Results.Entities.Count}";
7171
}
7272
mnuRecordsNumbers.Visible = true;
7373
}

0 commit comments

Comments
 (0)