]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 7 Nov 2024 16:32:41 +0000 (17:32 +0100)
commit60249a979cdf14f78c4d0a777a8f9f536272aa29
treedc214ba92745fb2147fd6a3e07596e7bdcd4ed01
parentd5fbb1e87c6964b27b7d9829ca41e40f49869009
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>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc