[Koha-bugs] [Bug 27865] Hold pickup location dropdown on patron pages should respect hold fulfillment policies

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 11 14:13:15 CET 2021


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

Peter Vashchuk <stalkernoid at gmail.com> changed:

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

--- Comment #3 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 118119
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118119&action=edit
Bug 27865: Pass the x-koha-override header to PUT /holds/:hold_id from the
patron's page

This patch makes the AJAX call to update an existing hold, pass the
'x-koha-override' header with the value of 'any', so any pickup location
policy override that is needed, is applied.

As the override is taken into account only if AllowHoldPolicyOverride is
enabled, this in fact restores the previous behavior.

To test:
1. Have a patron with a hold
2. Have AllowHoldPolicyOverride set to 'yes'
3. Try changing the pickup location to an invalid one
=> FAIL: The options are the same as before 27205, yet the AJAX call
         fails because of invalid pickup location.
4. Apply this patch
5. Repeat 3
=> SUCCESS: The API call succeeds, and the hold is updated (it is
        actually refetch, so just verify it has the value you selected
6. Sign off :-D

Signed-off-by: Petro Vashchuk <stalkernoid at gmail.com>

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


More information about the Koha-bugs mailing list