pagination values that are non-integer are treated as "1"
A for , submitted by Alistair on 02 October 2009
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#136: pagination values that are non-integer are treated as "1"
Solution, provided by drego: http://pastie.org/639037
Fixes issue with pagination in DS’s. The page value was cast to an integer, meaning invalid page values are always treated as 1. Thanks to ‘drego’. Closed by 54f9a4c7ec58d6310a4759c614234c50fd521b80.
This issue is closed.
Since start page is cast to an integer, the result will be 0 for non-integer values. When provided to the SQL, the 0 is valid and will return records from the 1st position. Instead, an error needs to be thrown.