Skip to content

Commit

Permalink
Issue #761 by Inlead: Consider denial of deniedRenewal a success.
Browse files Browse the repository at this point in the history
  • Loading branch information
amd_k8 committed Sep 4, 2015
1 parent 2477112 commit 9912f4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/AlmaClient/AlmaClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,9 @@ public function renew_loan($borr_card, $pin_code, $loan_ids) {
// successful. Even if this is not the case any error in the current
// renewal is irrelevant as the loan has previously been renewed so
// don't report it as such.
if ($message == 'isRenewedToday' || $renewable == 'yes') {
// Also renewalIsDenied marked as 'no' is considered a successful
// renewal.
if ($message == 'isRenewedToday' || $renewable == 'yes' || ($message == 'renewalIsDenied' && $renewable == 'no')) {
$reservations[$id] = TRUE;
}
elseif ($message == 'maxNofRenewals') {
Expand Down

0 comments on commit 9912f4b

Please sign in to comment.