[Koha-bugs] [Bug 26659] An item can be renewed even if there are holds waiting to be filled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 13 10:24:18 CEST 2020


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

Joonas Kylmälä <joonas.kylmala at helsinki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #111517|0                           |1
        is obsolete|                            |

--- Comment #3 from Joonas Kylmälä <joonas.kylmala at helsinki.fi> ---
Created attachment 111522
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111522&action=edit
Bug 26659: Fix incorrect comparison in checkout renewability

The syntax used here was wrong and it allowed incorrectly to renew
checkouts which should not have been allowed because there were
holds waiting to be filled. This scenario can be reproduced at least
with using local hold groups.

To test:

1. In the circ rules for all libraries under "Default holds policy by item
type" section
   select for itemtype Book the policies "From local hold group" and "patron's
hold group"
2. Enable AllowRenewalIfOtherItemsAvailable
3. Create local hold group for branch A and branch B
(/cgi-bin/koha/admin/library_groups.pl)
4. Create biblio with 2 items of itemtype Book, one in branch A and other in B
5. Checkout item from branch A to patron PA
6. Create bib level hold for patron PB whose home library is branch A.
7. Try go to renew now the loan for patron PA and notice it would work
8. Apply patch
9. Try to go renew the loan for patron PA and notice it doesn't work.

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


More information about the Koha-bugs mailing list