From 8218f2b55c544ac9fbb29153f2b1727d75cae5d7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 27 Feb 2017 08:59:53 +0000 Subject: [PATCH] Bug 17975: Let C4::Letters manage today param substitution MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The today parameter is properly handled from C4::Letters subroutines, we do not need to pass it from callers. Signed-off-by: Marc Véron Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart --- C4/Overdues.pm | 1 - C4/Reserves.pm | 1 - 2 files changed, 2 deletions(-) diff --git a/C4/Overdues.pm b/C4/Overdues.pm index b56708afff..d22914fc84 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -997,7 +997,6 @@ sub parse_overdues_letter { my $patron = Koha::Patrons->find( $params->{borrowernumber} ); my $substitute = $params->{'substitute'} || {}; - $substitute->{today} ||= output_pref( { dt => dt_from_string, dateonly => 1} ); my %tables = ( 'borrowers' => $params->{'borrowernumber'} ); if ( my $p = $params->{'branchcode'} ) { diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 7e24ff465a..6f245c3b20 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1869,7 +1869,6 @@ sub _koha_notify_reserve { 'reserves' => $hold->unblessed, 'items' => $hold->itemnumber, }, - substitute => { today => output_pref( { dt => dt_from_string, dateonly => 1 } ) }, ); my $notification_sent = 0; #Keeping track if a Hold_filled message is sent. If no message can be sent, then default to a print message. -- 2.39.5