]> git.koha-community.org Git - koha.git/commit
Bug 33736: Ensure datatable filter row takes visible into account
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 16 Oct 2024 09:38:32 +0000 (10:38 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 25 Oct 2024 09:09:58 +0000 (11:09 +0200)
commit025ed2d09aadc229490c94c5c82234e6942dbcf9
tree7dee67580b94911bb08b999c8c709571f11fb46d
parent6392f90b5f7afb6f1e89415ff17192c6a28d8f70
Bug 33736: Ensure datatable filter row takes visible into account

We clone the header row, and then iterate it assuming the iterator index
lines up with the column definition index of the datatables settings.

However, if a column is hidden, this is not the case. Said column will
not appear in the header row that's cloned and as such your iterator
will no longer line up with the column settings index number of the
settings array.

Sponsored-by: PTFS Europe Ltd
Signed-off-by: Esther Melander <esther@bywatersolutions.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/js/datatables.js