From 14af23062328e93b4e70a4a380cd9c7f4ef0574a Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 31 Aug 2017 00:16:17 +0000 Subject: [PATCH] Bug 19216: Fix broken table in OPAC for when club doesn't allow public enrolment To test: 1) Apply bug 19214 and bug 19215 to fix other issues with patron clubs 2) Create a club template that DOES NOT allow public enrollment 3) Create a club, enrol a user 4) Log in as that user to the OPAC 5) Go to 'your summary' and click the Clubs tab 6) Notice the broken table with empty column 7) Edit the club template to allow public enrollment 8) Notice the table is fixed - so this bug is just when the club does not allow public enrollment 9) Apply the patch 10) Edit the club template to NOT ALLOW public enrollment 11) Confirm the table in the OPAC is now fixed and does not leave an empty column Sponsored-by: Catalyst IT Signed-off-by: Claire Gravely --- koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt index df0e297..0b8fcaa 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt @@ -20,13 +20,15 @@ [% e.club.name %] [% e.club.description %] [% e.date_enrolled | $KohaDates %] - [% IF e.club.club_template.is_enrollable_from_opac %] - + + [% IF e.club.club_template.is_enrollable_from_opac %] - - [% END %] + [% ELSE %] + Contact your library to be disenrolled from this club. + [% END %] + [% END %] -- 2.1.4