From 25cb12ec97c7288d418af8912aecd3714699b3c1 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 3 Jan 2008 18:46:12 -0600 Subject: [PATCH] add INIT block to import C4::Items Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Reserves.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 2a5a2fd32b..689fbeca6a 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -32,6 +32,19 @@ use C4::Search; use C4::Circulation; use C4::Accounts; +INIT { + # an ugly hack to ensure that + # various subs get imported + # into C4::Reserves' symbol table + # FIXME: hopefully can remove once + # we get a better idea of exactly + # how Exporter/use/require/import + # should be used with modules + # that currently call functions + # from each other. + import C4::Items; +} + our ($VERSION,@ISA,@EXPORT,@EXPORT_OK,%EXPORT_TAGS); my $library_name = C4::Context->preference("LibraryName"); -- 2.39.5