From d3f716258face224210931451d9af044ad046bdb 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 --- 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 37db21ac54..4be9840a32 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -313,7 +313,7 @@ sub redirect_add_subscription { my $firstacquidate = 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, weeklength => $weeklength, @@ -434,7 +434,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, weeklength => $weeklength, -- 2.25.1