From 9a309b61bd7c2cb30ede3be93c671edccd835a8b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 9 May 2012 08:37:40 -0400 Subject: [PATCH] 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 --- opac/opac-detail.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index afc94984e7..4d9879a2ed 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -651,7 +651,6 @@ foreach ( @$reviews ) { } $_->{userid} = $borrowerData->{'userid'}; $_->{cardnumber} = $borrowerData->{'cardnumber'}; - $_->{datereviewed} = format_date($_->{datereviewed}); if ($borrowerData->{'borrowernumber'} eq $borrowernumber) { $_->{your_comment} = 1; -- 2.39.5