Bug 24736: Disable "Enrollments" link if nobody enrolled to the club yet
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 26 Feb 2020 16:46:49 +0000 (17:46 +0100)
committerJoy Nelson <joy@bywatersolutions.com>
Wed, 1 Apr 2020 20:30:46 +0000 (20:30 +0000)
commit99b12c3a98e97e12a1f3a69d0e3719701b031d42
tree2145c26098f9b930bb56eaf7d9ff82365978e433
parent84026f258909e1203f34793a1089388cd933d1c9
Bug 24736: Disable "Enrollments" link if nobody enrolled to the club yet

The link is disabled but it's possible to click and access the page
anyway.

Test plan:
- Create a new club template
- Create a new club
- Click the Actions > Enrollments link
=> Without this patch you can access the page
=> With this patch applied you cannot, and a tooltip explains why (feel
free to suggest another wording)
- Add a new patron to this club (from /cgi-bin/koha/opac-user.pl#opac-user-clubs)
- Notice that the action link is not enabled and click takes you to the
list of enrollments

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc