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 Bug 26217: Move translatable strings out of templates into acq.js 2020-09-29 14:28:18 +02:00
acquisitions-menu.js
additem.js Bug 25353: Correct eslint errors in additems.js 2020-10-26 00:14:42 +01:00
addorderiso2709.js Bug 27982: (follow-up) Address another missing instance 2021-04-06 15:56:31 +02:00
admin-menu.js
ajax.js Bug 26237: Move translatable strings out of preferences.tt and into JavaScript files 2020-09-29 14:28:18 +02:00
audio_alerts.js Bug 26225: Move translatable strings out of audio_alerts.tt and into audio_alerts.js 2020-09-29 14:28:18 +02:00
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js Bug 27754: Correct eslint errors in basket.js 2021-03-01 11:28:03 +01:00
basketgroup.js
biblio_framework.js Bug 26225: Move translatable strings out of biblio_framework.tt and into biblio_framework.js 2020-09-29 14:28:18 +02:00
calendar.js Bug 27937: Set datepicker when date is valid 2021-04-01 18:04:47 +02:00
cart.js Bug 26439: (QA follow-up) Correct MSG instances in cart.js 2020-11-04 12:59:34 +01:00
cashup_modal.js Bug 26274: Update register.tt to use the API 2021-02-12 12:33:41 +01:00
catalog.js Bug 26707: Split cart and lists button on bibliographic detail pages 2021-01-04 16:31:29 +01:00
cataloging.js Bug 27508: do nothing if tag label elements don't exist 2021-01-27 10:45:54 +01:00
cataloging_additem.js Bug 25727: Do not open options on clear 2020-08-24 11:19:03 +02:00
categories.js Bug 26229: Move translatable strings out of categories.tt and into categories.js 2020-09-29 14:28:18 +02:00
charts.js
checkouts.js Bug 26208: Perform batch checkin/renewals serially rather than asynchronously 2021-02-23 13:07:45 +01:00
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 Bug 24201: (follow-up) add desk choice with library choice 2020-08-07 16:54:40 +02:00
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 Bug 23173: (follow-up) Display available partners 2020-04-06 11:04:59 +01:00
ill-availability.js
ill-list-table.js Bug 25614: Move ILL request keyword filter to sidebar 2021-01-27 10:45:54 +01:00
item_search_fields.js Bug 26230: Move translatable strings out of item_search_fields.tt and into item_search_fields.js 2020-09-29 14:28:18 +02:00
letter.js Bug 26602: (QA follow-up) Cleanup datatables settings 2021-02-08 14:56:00 +01:00
localcovers.js Bug 25031: (QA follow-up) Improve handling of one or fewer images 2020-07-24 14:09:30 +02:00
mana.js
marc_modification_templates.js Bug 26065: Move translatable strings out of marc_modification_templates.tt and into marc_modification_templates.js 2020-08-18 15:45:49 +02:00
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 Bug 27430: Change password minimum value hint when patron category is changed 2021-02-01 16:36:38 +01:00
merge-record.js Bug 25320: Move translatable strings out of merge-record-strings.inc into merge-record.js 2020-09-29 14:28:19 +02:00
messaging-preference-form.js
offlinecirc.js
onboarding.js
register_selection.js Bug 24786: Allow selection of cash register at login 2020-11-06 15:39:59 +01:00
rotating-collections.js
select2.js Bug 27124: JS error "select2Width is not defined" 2020-12-21 10:07:40 +01:00
serials-toolbar.js Bug 26256: Move translatable strings out of templates and into serials-toolbar.js 2020-09-29 14:28:18 +02:00
showpredictionpattern.js
sms_providers.js Bug 26240: Move translatable strings out of sms_providers.tt and into sms_providers.js 2020-09-29 14:28:18 +02:00
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 Bug 26572: (QA follow-up) Escape strings in autocomplete 2020-11-04 12:59:34 +01:00
xmlControlfield.js
z3950_search.js Bug 23302: Less clicks on Z3950 search results 2021-01-27 14:36:26 +01:00