From 81d2335a9dded851d5d8823abd73cd6564d81bbd 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 Signed-off-by: Laura_Escamilla --- .../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 cc59617307f..5faf384e9e7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -891,7 +891,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