From e93e174ffc41cfbe4e8e76c22f242afed35ea593 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 2 Apr 2021 11:22:16 +0200 Subject: [PATCH] Bug 17656: use Koha::Subscription->startdate instead of Koha::Subscriptions Signed-off-by: Victor Grousset/tuxayo Signed-off-by: David Nind --- serials/subscription-add.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index f3ea5f69e08..bec13030e55 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -323,7 +323,7 @@ sub redirect_add_subscription { output_pref( { str => scalar $query->param('firstacquidate'), dateonly => 1, dateformat => 'iso' } ); if ( !defined $enddate || $enddate eq '' ) { - my $subscription = Koha::Subscriptions->new( + my $subscription = Koha::Subscription->new( { startdate => $startdate, periodicity => $periodicity, @@ -440,7 +440,7 @@ sub redirect_mod_subscription { # Guess end date if ( !defined $enddate || $enddate eq '' ) { - my $subscription = Koha::Subscriptions->new( + my $subscription = Koha::Subscription->new( { startdate => $startdate, periodicity => $periodicity, -- 2.34.1