From 2786623dfe20c804c5b52c854f75cf27b8474067 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=UTF-8 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 --- 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.11.0