https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43771

Emily Lamancusa (emlam) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emily.lamancusa@montgomeryc
                   |                            |ountymd.gov

--- Comment #2 from Emily Lamancusa (emlam) 
<[email protected]> ---
It looks like this was caused by the changed bug 23415 made to checkouts.js, in
the commit titled "Add debt override support to circulation checkout page".

Looking at the code, I think this issue will occur in other cases too (though I
haven't tested them):
- when the item has too many unseen renewals (if the system preference
UnseenRenewals is enabled and the number of unseen renewals allowed are limited
in the circulation rules)
- if the patron account has a restriction
- if the item is overdue
- if the item is denied renewal by the system preference (though I'm not sure
if that was overridable in the first place)

In the meantime, I was able to spot fix at least the issue Sara describes by
adding the following code to IntranetUserJS:

  // 26.05 bug 43771 workaround
  if($('#finesholdsissues').length > 0) {
    $("#override_limit")
      .click(function () {
      if (this.checked) {
        if (AllowRenewalLimitOverride) {
          $(".renewals-allowed").show();
        }
        if (AllowRenewalOnHoldOverride) {
          $(".renewals-allowed").show();
        }
      } else {
        $(".renewals-allowed").hide();
      }
    });
  }

I believe that should fix the other cases I listed above as well, though again,
I haven't specifically tested them.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to