Bug 8035 - bibs with comments show an error in opac
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 9 May 2012 12:37:40 +0000 (08:37 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 14 May 2012 20:36:42 +0000 (08:36 +1200)
commit7e8551cd9d61784d700496522a005941c46cdc9f
tree43d88927a6f2acf9131e07d81c786ea371a9f280
parente9f61126e0df2e5312ac00f642bd2a7a504f7f70
Bug 8035 - bibs with comments show an error in opac

If a record has any approved comments, viewing the record
details in the opac will error out with the following
message:

Undefined subroutine &main::format_date called at
/home/load02/kohaclone/opac/opac-detail.pl line 654.

This is caused by a use of C4::Dates::format_date
without adding a use call to the head of the file.

Removing the call is the only change necessary. The
dates are already being filtered by $KohaDates.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-detail.pl