add INIT block to import C4::Items
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 4 Jan 2008 00:46:12 +0000 (18:46 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 4 Jan 2008 02:24:11 +0000 (20:24 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Reserves.pm

index 2a5a2fd..689fbec 100644 (file)
@@ -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");