Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Environment:ubuntu, windows
Description
Hi Amit Jain,
First I would like to thank you for all the great work on the plugin.
I have found some anomalous behavior with the pagination.
For the following code:
<g:render template="/user/list" model="[showButtons:true]"/>
And in _list.gsp
<util:remotePaginate controller="user" action="list" total="$
{userInstanceTotal}" update="user-list" pageSizes="[5, 10, 20, 50, 100]" params="[profile:showButtons]"/>
In version 0.2.5 when you selected one of the "pageSizes" options, nothing happened. ( without the field "params" it worked perfectly)
In version 0.2.6 when one of the "pageSizes" options is selected it changes the max field, but the "Next" button appears. I have seen that the field "offset" that is in the javascript has a negative value and it gets incremented by the specified amount but in negative (-10, -60, -110) when one of the "pageSize" values was selected.
Many thanks
Thanks for reporting the bug. Apologies for delay in fixing. This bug has been fixed in the version 0.2.7.