Bugzilla – Attachment 168643 Details for
Bug 37031
Club enrollment doesn't complete in staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37031: Club enrollment from staff interface fails due to Entrollment typo
Bug-37031-Club-enrollment-from-staff-interface-fai.patch (text/plain), 1.30 KB, created by
David Nind
on 2024-07-09 10:20:53 UTC
(
hide
)
Description:
Bug 37031: Club enrollment from staff interface fails due to Entrollment typo
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-07-09 10:20:53 UTC
Size:
1.30 KB
patch
obsolete
>From 18ab8f81181517f980473b59e3cdd4c8d31f22e5 Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >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 <david@davidnind.com> >--- > 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.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37031
:
168573
|
168643
|
168745