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)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 14 May 2012 11:58:49 +0000 (13:58 +0200)
commit9a309b61bd7c2cb30ede3be93c671edccd835a8b
treee9098e35618d919f52028b24cea5e11cf54c5f40
parente9faa58901c402c7a80dbac29723bfbfed960163
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>
opac/opac-detail.pl