From eb31ecc5cf1bd14cbd3ce23821192b7b3619a8eb 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 Signed-off-by: Chris Cormack --- 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