Bug 6328 follow-up, fixes Undefined subroutine &C4::Circulation::Delta_Days
authorLyon3 Team <koha@univ-lyon3.fr>
Thu, 19 Jan 2012 15:44:01 +0000 (16:44 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 19 Jan 2012 15:49:25 +0000 (16:49 +0100)
The Delta_Days sub is called only when a patron that is already debarred must be debarred for a longer period.
This (rare) case probably hasn't be tested during QA, because the sub is not loaded.
Loading it fixes the problem

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Circulation.pm

index debef01..8d6f456 100644 (file)
@@ -43,6 +43,7 @@ use Date::Calc qw(
   Day_of_Week
   Add_Delta_Days       
   check_date
+  Delta_Days
 );
 use POSIX qw(strftime);
 use C4::Branch; # GetBranches