From 05d131febf2d98d1c0ec18da845589dcd80a5e8d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 17 Oct 2023 09:18:29 +0000 Subject: [PATCH] Bug 35073: Rename additional_fields to available_additional_fields 'additional_fields' is ambiguous and in other places we name this available_additional_fields instead. Do the same here. Signed-off-by: Katrin Fischer Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Tomas Cohen Arazi --- serials/subscription-batchedit.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serials/subscription-batchedit.pl b/serials/subscription-batchedit.pl index 556f81e8b3..dd06fe4a22 100755 --- a/serials/subscription-batchedit.pl +++ b/serials/subscription-batchedit.pl @@ -47,7 +47,7 @@ foreach my $subscriptionid (@subscriptionids) { push @subscriptions, $subscription if $subscription; } -my @additional_fields = Koha::AdditionalFields->search({tablename => 'subscription'})->as_list; +my @available_additional_fields = Koha::AdditionalFields->search({tablename => 'subscription'})->as_list; my $batchedit = $cgi->param('batchedit'); if ($batchedit) { @@ -63,7 +63,7 @@ if ($batchedit) { ); my $field_values = {}; - foreach my $field (@additional_fields) { + foreach my $field (@available_additional_fields) { my $value = $cgi->param('field_' . $field->id); $field_values->{$field->id} = $value; } @@ -77,7 +77,7 @@ if ($batchedit) { } my @additional_field_values; - foreach my $field (@additional_fields) { + foreach my $field (@available_additional_fields) { my $value = $field_values->{$field->id}; if (defined $value and $value ne '') { push @additional_field_values, { @@ -99,7 +99,7 @@ if ($batchedit) { $template->param( subscriptions => \@subscriptions, booksellers => [ Koha::Acquisition::Booksellers->search->as_list ], - additional_fields => \@additional_fields, + additional_fields => \@available_additional_fields, referrer => scalar $cgi->param('referrer'), ); -- 2.39.5