From bc6ac0980635a2ee1f5dbb9817308dff62c37ac5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 17 Sep 2012 14:04:12 +0200 Subject: [PATCH] Bug 8382: Followup: FIX wrong comparaison --- acqui/parcel.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/parcel.pl b/acqui/parcel.pl index 1c1736d..aa9a569 100755 --- a/acqui/parcel.pl +++ b/acqui/parcel.pl @@ -79,7 +79,7 @@ my $freight=$input->param('freight'); my $input_gst = ($input->param('gst') eq '' ? undef : $input->param('gst')); my $gst= $input_gst // $bookseller->{gstrate} // C4::Context->preference("gist") // 0; my $op = $input->param('op') // ''; -my $datereceived = ( $op eq ('new' or 'search' ) ) +my $datereceived = ( $op eq 'new' or $op eq 'search' ) ? C4::Dates->new($input->param('datereceived')) : C4::Dates->new($input->param('datereceived'), 'iso'); $datereceived = C4::Dates->new() unless $datereceived; -- 1.7.10.4