]> git.koha-community.org Git - koha.git/commit
Fix for Bug 6487 - No error explanation if patron expiration date is missing
authorOwen Leonard <oleonard@myacpl.org>
Wed, 8 Jun 2011 14:07:32 +0000 (10:07 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 14 Jun 2011 00:55:18 +0000 (20:55 -0400)
commitac0f1e734fbf7bd98e081484a51155c3e4d612e2
treedc5a171c5b409e5cee2d2a121fe265ba905d2552
parent431d672593004e0470f82b23486c04d21975ca55
Fix for Bug 6487 - No error explanation if patron expiration date is missing

The script tries to parse the patron expiration date without
checking that it is a valid date. If expiration date is empty
it doesn't get caught along with past expiration dates.

I wonder if this line was supposed to catch this problem:

Line 233: if ( $warning_year*$warning_month*$warning_day==0

This patch adds "!$borrower->{'dateexpiry'} ||" to that line.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 84a8c9a52222355dc298d00164f363f37e9a400c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt