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

--- Comment #9 from Chris Mathevet <[email protected]> ---
(In reply to Jonathan Druart from comment #7)
> (In reply to Anneli Österman from comment #3)
> > I tested this problem in a sandbox and could not replicate the problem with
> > the Patron categories page (numbers were correct and the Next button
> > worked). But it did appear in Item types page.
> > 
> > I applied the patch but it did not fix the '1 to 010 of x entries' or the
> > Next button in Item types page.
> 
> I did see the problem on the item type page, but then now I do no longer see
> it.
> It's not clear to me what's causing the problem...

For some reason, pageLength is sometimes returned as a string.

The "end" table variable is calculated by adding the start index (here 0) and
pageLength (here "10"). As a result, "010" is assigned to the end variable
instead of 10. This causes the message to display as "Showing 1 to 010..." and
also affects page navigation.

I also forgot to mention in the test plan that you should clear your browser's
local storage, since it stores some information such as the table length.

I will update it.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to