Bug 17975: Let C4::Letters manage today param substitution

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 <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-02-27 08:59:53 +00:00
parent b28d25e9cd
commit 8218f2b55c
2 changed files with 0 additions and 2 deletions

View file

@ -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'} ) {

View file

@ -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.