From bc60652c7aeb4f1a19e8028f5d4e6ed82affeb3f Mon Sep 17 00:00:00 2001
From: Kyle M Hall <kyle@bywatersolutions.com>
Date: Tue, 8 May 2012 08:20:56 -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.

One line fix, adds 'use C4::Dates qw(format_date);'
to the head of the file.
---
 opac/opac-detail.pl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index afc9498..e195530 100755
--- a/opac/opac-detail.pl
+++ b/opac/opac-detail.pl
@@ -44,6 +44,7 @@ use C4::XSLT;
 use C4::ShelfBrowser;
 use C4::Reserves;
 use C4::Charset;
+use C4::Dates qw(format_date);
 use MARC::Record;
 use MARC::Field;
 use List::MoreUtils qw/any none/;
-- 
1.7.2.5