]> git.koha-community.org Git - koha.git/commit
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)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 3 Sep 2012 13:38:38 +0000 (15:38 +0200)
commit3dc7b530c43ccad1163b2c1267e6fcf2f2e298ad
tree499f192ee144b59dbd533be7e15bfac0fd2dfbb7
parent27d324aeec1121c21f00eb3ad380feb4566691b4
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>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Koha/DateUtils.pm