From 3f1cf07766127930a0b4e775c8a6833aedd19905 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 Content-Type: text/plain; charset="utf-8" Comparation of date and datetime is always false Signed-off-by: Tomas Cohen Arazi Exported file contains the list of checked in items. --- members/readingrec.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/members/readingrec.pl b/members/readingrec.pl index 2645eda..d95cc8f 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'} ); } } -- 1.7.9.5