[Koha-bugs] [Bug 26634] Hold rules applied incorrectly when All Libraries rules are more specific than branch rules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 24 21:23:35 CET 2020


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

Nick Clemens <nick at bywatersolutions.com> changed:

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

--- Comment #9 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 113966
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113966&action=edit
Bug 26634: Remove GetHoldRule subroutine in C4::Reserves

This routine is only used internally and incorrectly overrides
the precedence of holds rules - it should be removed

This patch removes the routine, adjusts tests, and adds test to
confirm correct precedence is followed

To test:
1 - At the All Libraries level, create a circ rule for a specific patron
category and a specific item type that only allows 1 hold
2 - At the branch-specific level for Branch A, create an All/All rule that
allows 2 holds
3 - confirm ReservesControll is set to patron's library
4 - find a patron from Branch A of the category for which you made your rule
5 - find two bibs with items of the itype got which you made your rule
6 - place a hold on one bib. success!
7 - try to place a hold on the second bib. you're told you cannot because the
patron is only allowed 1 hold
8 - apply patch, restart services
9 - try to place your second hold again, success!

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


More information about the Koha-bugs mailing list