From 3069f1e6d9075cab6484ee95f09f7c653d901184 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Jun 2012 10:19:12 +0200 Subject: [PATCH] Bug 8154: The export today's checked in barcodes generated file is always empty Comparation of date and datetime is always false Signed-off-by: Tomas Cohen Arazi Exported file contains the list of checked in items. Signed-off-by: Paul Poulain --- members/readingrec.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/members/readingrec.pl b/members/readingrec.pl index 2645edac75..d95cc8f558 100755 --- a/members/readingrec.pl +++ b/members/readingrec.pl @@ -84,7 +84,8 @@ foreach my $issue (@{$issues}){ $line{barcode} = $issue->{'barcode'}; $line{volumeddesc} = $issue->{'volumeddesc'}; push(@loop_reading,\%line); - if (($input->param('op') eq 'export_barcodes') and ($today eq $issue->{'returndate'})) { + my $return_dt = Koha::DateUtils::dt_from_string($issue->{'returndate'}, 'iso'); + if ( ( $input->param('op') eq 'export_barcodes' ) and ( $today eq $return_dt->ymd() ) ) { push( @barcodes, $issue->{'barcode'} ); } } -- 2.39.5