From 4c9fc54166fd5154b7a3b6d22057222a9405c160 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 --- 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 22085420ec..6e59473a48 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -327,7 +327,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, @@ -448,7 +448,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.31.1