X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=acqui%2Flateorders.pl;h=08329741ef732bff7c74288e70a588a908f0f6e4;hb=568f32606c2c9c247b2b477193a2d6814f738fa6;hp=7c2b3f32f23a43dc6a42f05c0384f9117efa9c6f;hpb=c1f4866312e445117df96b74bce9093fd0b25fa0;p=koha.git diff --git a/acqui/lateorders.pl b/acqui/lateorders.pl index 7c2b3f32f2..08329741ef 100755 --- a/acqui/lateorders.pl +++ b/acqui/lateorders.pl @@ -86,10 +86,10 @@ my $estimateddeliverydateto_dt = $estimateddeliverydateto # Format the output of "date from" and "date to" if ($estimateddeliverydatefrom_dt) { - $estimateddeliverydatefrom = output_pref($estimateddeliverydatefrom_dt, undef, undef, 1); + $estimateddeliverydatefrom = output_pref({dt => $estimateddeliverydatefrom_dt, dateonly => 1}); } if ($estimateddeliverydateto_dt) { - $estimateddeliverydateto = output_pref($estimateddeliverydateto_dt, undef, undef, 1); + $estimateddeliverydateto = output_pref({dt => $estimateddeliverydateto_dt, dateonly => 1}); } my $branch = $input->param('branch'); @@ -118,7 +118,7 @@ if ($op and $op eq "send_alert"){ } } -my @parameters = ( $delay, $branch ); +my @parameters = ( $delay ); push @parameters, $estimateddeliverydatefrom_dt ? $estimateddeliverydatefrom_dt->ymd() : undef;