From 1b56e446ed64cad9d4dd42a8cb3f1953f424e0aa Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 Sep 2018 17:55:40 -0300 Subject: [PATCH] Bug 21396: Add 2 missing use statements in Koha::Account 1. require C4::Letters must be use C4::Letters (from bug 19191) 2. There is call to C4::Circulation::ReturnLostItem, but no use of C4::Circulation (from bug 20631) Test plan: finger crossed, I ran the tests from t/db_dependent/Koha and they all passed Signed-off-by: Michal Denar Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- Koha/Account.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index 4926f9e2e8..2db8d0d182 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -23,6 +23,8 @@ use Carp; use Data::Dumper; use List::MoreUtils qw( uniq ); +use C4::Circulation qw( ReturnLostItem ); +use C4::Letters; use C4::Log qw( logaction ); use C4::Stats qw( UpdateStats ); @@ -264,7 +266,6 @@ sub pay { } if ( C4::Context->preference('UseEmailReceipts') ) { - require C4::Letters; if ( my $letter = C4::Letters::GetPreparedLetter( module => 'circulation', -- 2.39.5