[Koha-bugs] [Bug 27529] Cannot place hold on OPAC if hold_fullfillment_policy is set to group and OPACAllowUserToChooseBranch not allowed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Apr 3 19:58:44 CEST 2021


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

David Nind <david at davidnind.com> changed:

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

--- Comment #6 from David Nind <david at davidnind.com> ---
Created attachment 119162
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119162&action=edit
Bug 27529: Choose patron's branch or item's homebranch if following group rules
and patron cannot choose branch

This patch defaults the holds pickup location to the items homebranch or the
patron's branch when a group option is selected
for the hold fulfillment policy and the patron is not allowed to choose the
branch on the OPAC

To test:
1 - Set 'Default checkout, hold and return policy' -> 'Hold pickup library
match' to item's hold group or patron's hold group
2 - Set  OPACAllowUserToChooseBranch to 'Don't allow'
3 - Try to place an item level hold on the opac
4 - Ka-boom, etiher:
    The method Koha::Item->patrongroup is not covered by tests!
    The method Koha::Item->itemgroup is not covered by tests!
5 - Apply patch
6 - Repeat
7 - Note the pickup location is set to either the patron's branch or the items
homebranch
8 - Repeat plan with the other group setting

Signed-off-by: David Nind <david at davidnind.com>

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


More information about the Koha-bugs mailing list