From ac67af30636a7449a4532d88f30ac15bb3ca3167 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 Having svc/club/enroll try to call Koha::Club::Entrollments->search would have been great trolling, if only it had been intentional and if only any of the people signing off had noticed it. 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 --- 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.44.0