coldwellpacific / variman

Automatically exported from code.google.com/p/variman
0 stars 0 forks source link

Returned Count Is Incorrect When the Limit Request Parameter is Used #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The COUNT tag returns the wrong value when the Limit request parameter is used. 
If the requested limit is smaller than the number of records that match the 
criteria, then the value for Limit is returned.

For example, given some search criteria that matches 50 records and a Limit of 
10 is specified, something similar to the following is returned:

<RETS ReplyCode="0" ReplyText="Operation Successful">
<COUNT Records="10"/>
...
</RETS>

but should have returned something like:

<RETS ReplyCode="0" ReplyText="Operation Successful">
<COUNT Records="50"/>
...
</RETS>

Attached is a patch file that fixes this problem. This patch is intended to be 
applied after the patch in Issue #6.

Original issue reported on code.google.com by work4dhu...@gmail.com on 12 Feb 2011 at 6:23

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2093.

Original comment by jazzklein on 13 Feb 2011 at 9:20