From 76236e6224d3ff1cc96d3c26a0716b410f5a8d4a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 9 Apr 2019 16:06:27 +0000 Subject: [PATCH] Bug 22626: 'Filter paid transactions' broken on Transactions tab in staff This patch changes a parameter in the function which filters the DataTable of transactions. The addition of more columns to the table changed the index of the column which is being filtered. To test, apply the patch and locate a patron who has multiple fines or charges, some of them paid. Go to Accounting -> Transactions. Test the "Filter paid transactions" link. Table rows which show "0.00" in the "Oustanding" column should be hidden. --- koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 22b796e..9c97ed4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -141,7 +141,7 @@ var filteredValue = '^((?!0.00).*)$'; //Filter not matching 0.00 http://stackoverflow.com/a/406408 $(this).html(' '+txtInactivefilter); } - table_account_fines.fnFilter(filteredValue, 5, true, false); + table_account_fines.fnFilter(filteredValue, 8, true, false); $(this).toggleClass('filtered'); }); -- 2.1.4