Bug 17680: Fix regression - is_overdue must be called
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Jun 2017 13:48:29 +0000 (10:48 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Jul 2017 15:06:37 +0000 (12:06 -0300)
is_overdue must be called even if there is not dropbox date (!)

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm

index 4a27c3b..8ee7e6e 100644 (file)
@@ -1930,6 +1930,8 @@ sub AddReturn {
 
             $circControlBranch = _GetCircControlBranch($item,$borrower);
             $is_overdue = $issue->is_overdue( $dropboxdate );
+        } else {
+            $is_overdue = $issue->is_overdue;
         }
 
         if ($borrowernumber) {