]> git.koha-community.org Git - koha.git/commit
Bug 35942: OPAC user can enroll several times to the same club
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 30 Jan 2024 15:58:02 +0000 (10:58 -0500)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 11 Jul 2024 20:07:29 +0000 (20:07 +0000)
commita3db039d415f36b57e7434e9375558b4a6cfea4b
treee4126958f27d3452eb6b77da278edc1d2e942514
parent12edba3773ae2a47384134a04790ec519b262d43
Bug 35942: OPAC user can enroll several times to the same club

Test Plan:

1) Create 3 clubs, 1 limited to library A, 1 limited to library B and one not limited
2) Use a patron with home library A.
3) Go to the opac-user page, "Clubs" tab show 0/2 (the one from library B is not listed)
4) Browse to /cgi-bin/koha/svc/club/enroll?id=1
5) Reload that page a couple times
6) Note the patron is now enrolled in the same club multiple times
7) Delete those enrollments
8) Apply this patch
9) Restart all the things!
10) Repeat steps 2-7, note the lack of duplicate enrollments!
11) Repeat steps 2-10 for the staff interface

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c735c027fabbd91fad2a3208fb0a80c8e2f1eaf3)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
opac/svc/club/enroll
svc/club/enroll