From: paul <[EMAIL PROTECTED]>

diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl
index 4fd12b6..9c30f98 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 );
   
-- 
1.5.3.2

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to