From cdd646855af5fbc5c6ce2ae4f9661bafd8e076a2 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 7 Jul 2010 17:56:40 +0200 Subject: [PATCH] bug3812 : Illegal Date 'iso' does not match 'iso' format (Acquisitions) applied all recommandations on acqui/orderreceive.pl Thanks m.de.rooy@rijksmuseum.nl --- acqui/orderreceive.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index 6d33e7e78e..47ba08d0c2 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -77,7 +77,7 @@ my $search = $input->param('receive'); my $invoice = $input->param('invoice'); my $freight = $input->param('freight'); my $biblionumber = $input->param('biblionumber'); -my $datereceived = C4::Dates->new($input->param('datereceived'),'iso') || C4::Dates->new(); +my $datereceived = C4::Dates->new($input->param('datereceived')||'','iso') || C4::Dates->new(); my $catview = $input->param('catview'); my $gst = $input->param('gst'); @@ -181,6 +181,7 @@ else { my %line = %{ $results[$i] }; $line{title} = $results[$i]->{'title'}; $line{author} = $results[$i]->{'author'}; + $line{datereceived} = $results[$i]->{'datereceived'}; push @loop, \%line; } $template->param( -- 2.39.5