[Koha-bugs] [Bug 19234] Add query parameters handling helpers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 21 16:31:57 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19234

--- Comment #10 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Comment on attachment 66992
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66992
Bug 19234: Add query parameters handling helpers

Review of attachment 66992:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19234&attachment=66992)
-----------------------------------------------------------------

::: Koha/REST/Plugin/Query.pm
@@ +68,5 @@
> +    my ( $page, $per_page ) = @_;
> +
> +    my $attributes = {
> +        rows => $per_page,
> +        page => $page

As a general rule when doing paging one should also always explicitly set an
order_by parameter to ensure the resultset is always sorted consistently
between paged queries.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list