Skip to content

Commit

Permalink
Merge branch 'DDBCMS-11'
Browse files Browse the repository at this point in the history
  • Loading branch information
amd_k8 committed Sep 4, 2015
2 parents 2477112 + 9912f4b commit 932e8ae
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 932e8ae

Please sign in to comment.