Bugzilla – Attachment 132972 Details for
Bug 29859
Favor iterators over as_list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29859: Fix club/enroll
Bug-29859-Fix-clubenroll.patch (text/plain), 1.36 KB, created by
Jonathan Druart
on 2022-04-05 13:19:37 UTC
(
hide
)
Description:
Bug 29859: Fix club/enroll
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-04-05 13:19:37 UTC
Size:
1.36 KB
patch
obsolete
>From 40033cb960eee936a9888268ba59a45561b992e3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 5 Apr 2022 15:19:12 +0200 >Subject: [PATCH] Bug 29859: Fix club/enroll > >--- > opac/svc/club/enroll | 2 +- > svc/club/enroll | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/svc/club/enroll b/opac/svc/club/enroll >index 366dcd97b5f..aff1d51fb95 100755 >--- a/opac/svc/club/enroll >+++ b/opac/svc/club/enroll >@@ -57,7 +57,7 @@ if ( $borrowernumber && $id ) { > } > )->store(); > >- my @enrollment_fields = $club->club_template()->club_template_enrollment_fields(); >+ my @enrollment_fields = $club->club_template()->club_template_enrollment_fields->as_list; > > foreach my $e (@enrollment_fields) { > Koha::Club::Enrollment::Field->new()->set( >diff --git a/svc/club/enroll b/svc/club/enroll >index 7bfe364f96e..9c88c547173 100755 >--- a/svc/club/enroll >+++ b/svc/club/enroll >@@ -54,7 +54,7 @@ if ($club) { > )->store(); > > if ($enrollment) { >- my @enrollment_fields = $club->club_template()->club_template_enrollment_fields(); >+ my @enrollment_fields = $club->club_template()->club_template_enrollment_fields->as_list; > > foreach my $e (@enrollment_fields) { > my $club_enrollment_field = Koha::Club::Enrollment::Field->new( >-- >2.25.1
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 29859
:
129346
|
129350
|
130102
|
130148
|
130149
|
130480
|
130483
| 132972 |
132983