Bug 17634: Fix circ dependency with require instead of use
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 16 Nov 2016 07:29:45 +0000 (07:29 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 16 Nov 2016 10:57:56 +0000 (10:57 +0000)
This is definitely wrong but we won't have time to fix it correctly
before the release.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/ArticleRequest.pm

index 217e187..75318fd 100644 (file)
@@ -102,6 +102,7 @@ sub notify {
 
     my $status = $self->status;
 
+    require C4::Letters;
     if (
         my $letter = C4::Letters::GetPreparedLetter(
             module                 => 'circulation',