From cdddd0b73ee99aab06b0d6963d9a4b22d431ef3e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 18 Nov 2019 16:19:02 +0000 Subject: [PATCH] Bug 24060: Use patron object to load club tab To recreate: 1 - Be using 19.05 2 - Create a club template and a club 3 - Go to a patron's checkout page 4 - Note the club tab will load 5 - Go to a patron's details page 6 - Note the club tab says 'Loading' 7 - Apply patch 8 - It loads! Signed-off-by: Myka Kennedy Stephens Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- 1 file changed, 1 insertion(+), 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 d41e76d582..0548b2a6b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -849,7 +849,7 @@ if ( $('#clubs-tab').length ) { $('#clubs-tab-link').on('click', function() { $('#clubs-tab').text(_("Loading...")); - $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% borrowernumber | html %]'); + $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]'); }); } -- 2.39.5