Bug 19275: clubs table broken at the opac if public enrollment is not allowed

Test Plan:
1. Create a template club and disable public enrollment
2. Create a club and add it a patron
3. login at the opac with this patron
4. Note the borked clubs table
5. Apply this patch
6. Refresh the page
7. Table is fixed!

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle M Hall 2017-09-08 11:52:02 -04:00 committed by Jonathan Druart
parent 2aba85d811
commit 5c45b2d69b
1 changed files with 4 additions and 4 deletions

View File

@ -20,13 +20,13 @@
<td>[% e.club.name %]</td>
<td>[% e.club.description %]</td>
<td>[% e.date_enrolled | $KohaDates %]</td>
[% IF e.club.club_template.is_enrollable_from_opac %]
<td>
<td>
[% IF e.club.club_template.is_enrollable_from_opac %]
<button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )">
<i class="icon-remove"></i> Cancel enrollment
</button>
</td>
[% END %]
[% END %]
</td>
</tr>
[% END %]
</tbody>