]> git.koha-community.org Git - koha.git/commit
Bug 29186: (QA follow-up) Correct the check for showing limit menu
authorOwen Leonard <oleonard@myacpl.org>
Mon, 11 Oct 2021 10:57:40 +0000 (10:57 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Oct 2021 12:08:06 +0000 (14:08 +0200)
commit033ce601a3fcbac339adcee1d60461fc4d87df4b
tree240c61d7cb6ac78b498c0ffe5fd2877a73eb8fab
parent5fee6f18a48e3a6214f6095f52feb87ab222bfaf
Bug 29186: (QA follow-up) Correct the check for showing limit menu

The template conditional for showing the limit menu should be changed
to:

[% IF ( unlimited_total > 10 && limit <= 1000 ) %]

- "unlimited_total > 10" so that the "rows per page" button only shows
  if there are more than 10 total results, because 10 is the smallest
  increment the "rows per page" control offers.
- "limit <= 1000" so that the "rows per page" button will show when the
  current result limit is less than or equal to 1000, because 1000 is
  the upper limit to the "rows per page" control.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt