Bug 17755: Introduce Koha::Object::Limit::Library
[srvgit] / Koha / ArticleRequest.pm
index 8ca0de8..75318fd 100644 (file)
@@ -28,7 +28,6 @@ use Koha::Items;
 use Koha::Libraries;
 use Koha::ArticleRequest::Status;
 use Koha::DateUtils qw(dt_from_string);
-use C4::Letters qw(GetPreparedLetter);
 
 use base qw(Koha::Object);
 
@@ -103,6 +102,7 @@ sub notify {
 
     my $status = $self->status;
 
+    require C4::Letters;
     if (
         my $letter = C4::Letters::GetPreparedLetter(
             module                 => 'circulation',