Bug 8391: prevent error when viewing circ history with bad dates
authorRobin Sheat <robin@catalyst.net.nz>
Fri, 27 Jul 2012 09:34:17 +0000 (11:34 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 6 Aug 2012 20:44:10 +0000 (08:44 +1200)
commit694e6bebfd98a45fc427a2a0aeb44bcf69cb7727
treeee8f3358f984d39baa82afce3d6bf1975b20ac2a
parent75504a2115937d5d570504ff2dcfb6d586133e7b
Bug 8391: prevent error when viewing circ history with bad dates

Sometime the circ history will contain "0000-00-00" as a returndate when
an item was lost rather than returned. This currently causes an error
when attempting to parse the dates, this patch causes an empty string to
be returned instead.

Note: a future enhancement should distinguish between "no date provided"
and "invalid date provided" to allow distinctions to be made.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/DateUtils.pm