]> git.koha-community.org Git - koha.git/commit
Bug 30397: Remove duplicate entry from length menu of patrons search
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 31 Oct 2024 13:41:19 +0000 (14:41 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 5 Dec 2024 21:47:15 +0000 (21:47 +0000)
commit5c45839b5b4cd51a2f865d95abbaff37c10eacb2
treec58ba5240a812d7d195fbb91b2aa426161f94e2e
parenteada390b354e8b5767daf82471a95fb165720659
Bug 30397: Remove duplicate entry from length menu of patrons search

If you have 20 in PatronsPerPage, there will be two 20 entries in the
length menu of the patrons search.
jQuery.unique is stupid it seems, it requires the array to be sorted (?)

let x = [1, 2, 1, 2]
jQuery.unique(x);
Array(4) [ 1, 2, 1, 2 ]

x = [1, 1, 2, 2]
jQuery.unique(x);
Array [ 1, 2 ]

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 60249a979cdf14f78c4d0a777a8f9f536272aa29)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc