From 0aa348b665769f931a81c954afb07d9d44678453 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Sat, 6 Jul 2024 15:34:06 -0700 Subject: [PATCH] Bug 37031: Club enrollment from staff interface fails due to Entrollment typo There is a typo in svc/club/enroll - it tries to call Koha::Club::Entrollments->search when it should be Koha::Club::Enrollments. This causes and error when enrolling patrons in clubs. Test plan: 1. Without the patch, Tools - Patron clubs - New club template - name it and save 2. New club - (your template) - name it and save 3. Circulation - check out to a patron - Clubs tab - Enroll - Finish enrollment, get alert() about failure to enroll 4. Apply patch, restart_all 5. Enroll - Finish enrollment, success Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer (cherry picked from commit f02d90938dbe0ff8efd43cad23abb066d5642d51) Signed-off-by: Lucas Gass --- svc/club/enroll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/club/enroll b/svc/club/enroll index 4a49a8f8a9..d2754577e2 100755 --- a/svc/club/enroll +++ b/svc/club/enroll @@ -64,7 +64,7 @@ if ($enrollent_id) { } } } elsif ($club) { - my $already_enrolled = Koha::Club::Entrollments->search( + my $already_enrolled = Koha::Club::Enrollments->search( { club_id => $club->id(), borrowernumber => $borrowernumber, -- 2.39.5