From ebef0f821f1feb8898df5f733f75a3eac7f5db44 Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Fri, 23 Jan 2026 12:53:45 +0000 Subject: [PATCH] Bug 41692: "See all charges" link in the guarantor details does not activate Guarantees charges tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a member has guarantees and the guarantees have charges/fines, the link "See all charges." in the guarantor details does not work. It should activate the "Guarantees’ charges" tab and display the guarantee’s charges. Steps to Reproduce 1. Find or create a patron with the 'Kid' category. 2. Add a guarantor for this patron. 3. Go to Accounting and create a manual invoice without paying it. 4. Open the guarantor details page. 5. Click on "See all charges." ==> it does nothing. 6. Apply the patch 7. Repeat step 4, 5 ==> The "Guarantees’ charges" tab is activate Signed-off-by: Owen Leonard --- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 6ac0d5fd485..9e89e634c59 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -856,7 +856,11 @@ }); $("#view_guarantees_finesandcharges").on("click", function () { - $("#guarantees_finesandcharges-tab").click(); + bootstrap.Tab + .getOrCreateInstance( + document.getElementById("guarantees_finesandcharges-tab") + ) + .show(); }); $("#cancellation-reason").comboBox({ -- 2.39.5