[Koha-bugs] [Bug 22891] ILS-DI: RenewLoan explodes in error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun May 12 18:54:29 CEST 2019


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

--- Comment #3 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 89641
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89641&action=edit
Bug 22891: (bug 21206 follow-up) Fix RenewHold (ILS-DI)

From
  commit 31c29fd31f557306233e6a2936148a5bb10b89a1
  Bug 21206: Replace C4::Items::GetItem

A missing 'unless' test made RenewHold return prematurely:
  return $issue;
should have been
  return unless $issue;

Test plan:
Hit /cgi-bin/koha/ilsdi.pl?service=RenewLoan&patron_id=51&item_id=756

With different situations:
1. Item is checked out to the patron
2. Item is not checked out to the patron
3. Item does not exist
4. Patron does not exist

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list