Bug 19216: Fix broken table in OPAC for when club doesn't allow public enrolment
authorAleisha Amohia <aleishaamohia@hotmail.com>
Thu, 31 Aug 2017 00:16:17 +0000 (00:16 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 27 Oct 2017 17:10:27 +0000 (14:10 -0300)
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 <claire.gravely@bsz-bw.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt

index fbdf4cd..0b8fcaa 100644 (file)
@@ -25,6 +25,8 @@
                             <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )">
                                 <i class="icon-remove"></i> Cancel enrollment
                             </button>
+                        [% ELSE %]
+                            Contact your library to be disenrolled from this club.
                         [% END %]
                     </td>
                 </tr>