CStoreEditor avoid direct Exporter->import invocation
authorBill Erickson <berick@esilibrary.com>
Fri, 1 Aug 2014 17:29:41 +0000 (13:29 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 1 Aug 2014 17:29:51 +0000 (13:29 -0400)
Exporter provides an export_to_level function to handle this.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/CStoreEditor.pm

index 9954610..9f8f5fc 100644 (file)
@@ -69,7 +69,8 @@ sub import {
         }
     }
 
-    return $class->SUPER::import( @super_args );
+    # Exporter doesn't like you to call it's import() directly
+    return $class->export_to_level(1, $class, @super_args);
 }
 
 sub new_editor { return OpenILS::Utils::CStoreEditor->new(@_); }