Koha/koha-tmpl/intranet-tmpl/prog/js
Tomas Cohen Arazi c18d683f99 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@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-04 15:05:37 +02:00
..
pages Bug 28007: (follow-up) Address missing instances 2021-04-06 15:56:31 +02:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js Bug 27982: (follow-up) Address another missing instance 2021-04-06 15:56:31 +02:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
calendar.js Bug 27937: Set datepicker when date is valid 2021-04-01 18:04:47 +02:00
cart.js
cashup_modal.js
catalog.js
cataloging.js
cataloging_additem.js
categories.js
charts.js
checkouts.js
circ-patron-search-results.js
datatables.js Bug 28096: Fix table settings for API datatables wrapper 2021-04-21 10:51:29 +02:00
desk_selection.js
elasticsearch-mappings.js Bug 26970: Add row highlight on drag in Elasticsearch mapping template 2021-04-07 16:08:04 +02:00
file-upload.js
funds_sorts.js
holds.js Bug 27865: Pass the x-koha-override header to PUT /holds/:hold_id from the patron's page 2021-05-04 15:05:37 +02:00
ill-availability-partner.js
ill-availability.js
ill-list-table.js
item_search_fields.js
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js Bug 8976: Add the ability to sort subfields for the MARC frameworks 2021-03-01 15:14:22 +01:00
members-menu.js Bug 27749: Phase out jquery.cookie.js: Search to hold 2021-04-06 15:56:30 +02:00
members.js
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js
register_selection.js
rotating-collections.js
select2.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 27930: Move _escape_* from acqui/parcel.tt to js/staff-global.js 2021-03-11 16:30:56 +01:00
subscription-add.js Bug 27998: (follow-up) Address missing instances 2021-04-06 15:56:31 +02:00
table_filters.js
tools-menu.js
viewlog.js
xmlControlfield.js
z3950_search.js