From 6c4375adb5f1bc9a1e3a70c49af43a3c02e0b8b1 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 16 Mar 2020 17:48:26 +0000 Subject: [PATCH] Bug 15668: (follow up) add selector to th follow up add a selector to the to ensure we count the table in questions. Should not affect other pages but is needed on detail.tt where there are two tables to configure Signed-off-by: Sally Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc index 59c57e9204..d863b1e9cc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -8,7 +8,7 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { var selector = '#' + id_selector; $(columns_settings).each( function() { - var named_id = $( 'thead th[data-colname="' + this.columnname + '"]', selector ).index( 'th' ); + var named_id = $( 'thead th[data-colname="' + this.columnname + '"]', selector ).index( selector + ' th' ); var used_id = dt_parameters.bKohaColumnsUseNames ? named_id : counter; if ( used_id == -1 ) return; -- 2.39.5