]> git.koha-community.org Git - koha.git/commit
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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 2 Mar 2020 09:31:23 +0000 (09:31 +0000)
commit886dd6b3be3ce94eb28742b2b10cffe7eaf64c8b
tree1fda64385814e5e53d6a5e4b8fa61d7f5544cbf4
parent729200ae57b81966b3ae5e312eef8e75123f85b9
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