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:
parent
b28d25e9cd
commit
8218f2b55c
2 changed files with 0 additions and 2 deletions
|
@ -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'} ) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue