[Koha-bugs] [Bug 8154] The export today's checked in barcodes generated file is always empty
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 15 16:32:37 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8154
Ian Walls <koha.sekjal at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |Failed QA
CC| |koha.sekjal at gmail.com
--- Comment #5 from Ian Walls <koha.sekjal at gmail.com> ---
Reformats the datetime in issue->{returndate} into iso-formatted date. Uses
C4::Dates, rather than DateTime, though, which we're looking to phase out.
if ( ($input->param('op') eq 'export_barcodes')
and ($today eq C4::Dates->new( $issue->{'returndate'}, 'iso' )->output("iso"))
) {
could be
my $return_dt = Koha::DateUtils::dt_from_string($issue->{'returndate'}, 'iso');
if ( ($input->param('op') eq 'export_barcodes')
and ($today eq $return_dt->ymd() ) {
My initial testing shows this change should work, and it won't introduce a new
dependence on C4::Dates we'll just have to replace later.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list