Bug 36640: Fix logic in column numbering for filters

I don't really understand why this was not required on bug 33484, but
here this patch fixes a bug with the filters and the column visibility:

Fix: select an option in a column filter then hide a column that is before.

Signed-off-by: Jake Deery <jake.deery@ptfs-europe.com>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-10-23 14:31:01 +02:00 committed by Katrin Fischer
parent 84d8fdb8a5
commit b6b733c282
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 1 deletions

View File

@ -860,7 +860,8 @@ function _dt_add_delay_filters(table_dt, table_node) {
table_dt.column(i).search(val, true, false).draw();
}, delay_ms);
$(table_node).find('thead tr:eq(1) th').each( function (i) {
$(table_node).find('thead tr:eq(1) th').each( function (visible_i) {
var i = table_dt.column.index('fromVisible', visible_i);
$(this).find("input")
.unbind()
.bind("keyup change", function(){