From 7a109482865838f1594e2e84f762e3e9c95a22db Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Nov 2018 17:57:54 -0300 Subject: [PATCH] Bug 15774: Do not fetch additional fields from GetSubscription Finally we do not want that, they should be fetch when needed Signed-off-by: Jonathan Druart Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- C4/Serials.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 8758297752..66c1f90247 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -274,11 +274,6 @@ sub GetSubscription { $subscription->{cannotedit} = not can_edit_subscription( $subscription ); - # Add additional fields to the subscription into a new key "additional_fields" - my $subscription_object = Koha::Subscriptions->find($subscriptionid); - $subscription->{additional_fields} = { map { $_->field->name => $_->value } - $subscription_object->additional_field_values->as_list }; - if ( my $mana_id = $subscription->{mana_id} ) { my $mana_subscription = Koha::SharedContent::get_entity_by_id( 'subscription', $mana_id, {usecomments => 1}); -- 2.39.5