From 2c8b6b617b2f40bacf41a0130ad1402071b7ade5 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 20 Jun 2008 12:34:45 +0200 Subject: [PATCH] various fixes for acquisition histsearch Signed-off-by: Joshua Ferraro --- acqui/histsearch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl index 4fd12b69c2..9c30f98b10 100755 --- a/acqui/histsearch.pl +++ b/acqui/histsearch.pl @@ -81,8 +81,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $from_iso = ($from_placed_on->output('iso') || 0); -my $to_iso = ( $to_placed_on->output('iso') || 0); +my $from_iso = C4::Dates->new($input->param('from'))->output('iso') if $input->param('from'); +my $to_iso = C4::Dates->new($input->param('to'))->output('iso') if $input->param('iso'); my ( $order_loop, $total_qty, $total_price, $total_qtyreceived ) = &GetHistory( $title, $author, $name, $from_iso, $to_iso ); -- 2.39.5