Bug 21133: Add missing use C4::Accounts statement in Koha/Patron.pm
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 31 Jul 2018 15:36:35 +0000 (12:36 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Jul 2018 16:07:00 +0000 (13:07 -0300)
It's a follow-up of
  commit 9c6f634469de4364d71bc0eb7520d04ead61fd00
  Bug 16912: Koha::Patrons - Move AddEnrolmentFeeIfNeeded to->add_enrolment_fee_if_needed

One of the known issue:
> update categories set enrolmentfee=2;
The use misc/devel/create_superlibrarian.pl to create a new
superlibrarian patron

Signed-off-by: Victor Grousset <victor.grousset@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron.pm

index 98a0fe6..9e8b3cf 100644 (file)
@@ -26,6 +26,7 @@ use JSON qw( to_json );
 use Module::Load::Conditional qw( can_load );
 use Text::Unaccent qw( unac_string );
 
+use C4::Accounts;
 use C4::Context;
 use C4::Log;
 use Koha::AuthUtils;