From e0da941f712a2b2be6e43eefbcdd013ec4bd5adb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Nov 2018 17:51:56 -0300 Subject: [PATCH] Bug 15774: Fix insert and update for subscription Call it a typo Signed-off-by: Jonathan Druart Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- serials/subscription-add.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index 68b80c65f3..9e503e55ae 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -384,8 +384,8 @@ sub redirect_add_subscription { my @additional_fields; my $record = GetMarcBiblio({ biblionumber => $biblionumber, embed_items => 1 }); - my $basket_fields = Koha::AdditionalFields->search({ tablename => 'aqbasket' }); - while ( my $field = $basket_fields->next ) { + my $subscription_fields = Koha::AdditionalFields->search({ tablename => 'subscription' }); + while ( my $field = $subscription_fields->next ) { my $value = $query->param('additional_field_' . $field->id); if ($field->marcfield) { my ($field, $subfield) = split /\$/, $field->marcfield; @@ -503,8 +503,8 @@ sub redirect_mod_subscription { my @additional_fields; my $record = GetMarcBiblio({ biblionumber => $biblionumber, embed_items => 1 }); - my $basket_fields = Koha::AdditionalFields->search({ tablename => 'aqbasket' }); - while ( my $field = $basket_fields->next ) { + my $subscription_fields = Koha::AdditionalFields->search({ tablename => 'subscription' }); + while ( my $field = $subscription_fields->next ) { my $value = $query->param('additional_field_' . $field->id); if ($field->marcfield) { my ($field, $subfield) = split /\$/, $field->marcfield; -- 2.39.5