From 593dcf02e578acb0da9458bd63aba47b2a4f0973 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 15 Jun 2018 12:56:36 +0200 Subject: [PATCH] Bug 20951: add missing use Koha::Patron::Debarments in Koha::Patron::Discharge Koha::Patron::Discharge was missing use Koha::Patron::Debarments used in discharge() method. Test plan : 1) Enable pref useDischarge 2) Go to OPAC user page 3) Go to 'ask for a discharge' tab 4) Click on 'Ask for a discharge' 5) Go to staff interface : /cgi-bin/koha/members/discharges.pl 6) Click on Allow => Without patch you get software error => With patch the discharge is validated Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit 842abeb423b81c61d2774f8446a5bcbb2d0a258c) Signed-off-by: Fridolin Somers (cherry picked from commit 9ef0e010cca0de135d8a270b2fd70ba155d018b6) Signed-off-by: Fridolin Somers --- Koha/Patron/Discharge.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Patron/Discharge.pm b/Koha/Patron/Discharge.pm index 289fdb09a8..cf0565c8c5 100644 --- a/Koha/Patron/Discharge.pm +++ b/Koha/Patron/Discharge.pm @@ -12,6 +12,7 @@ use C4::Reserves qw( GetReservesFromBorrowernumber CancelReserve ); use Koha::Database; use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::Patrons; +use Koha::Patron::Debarments; my $rs = Koha::Database->new->schema->resultset('Discharge'); -- 2.39.5