Main Koha release repository https://koha-community.org
Find a file
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
acqui Bug 23971: Rename pref with AcquisitionLog 2021-04-23 11:58:49 +02:00
admin Bug 28207: Fix biblio_framework.frameworktext isn't in GROUP BY 2021-04-30 17:07:32 +02:00
api Bug 28254: Make PUT /holds/:hold_id/pickup_location honour x-koha-override 2021-05-04 14:22:08 +02:00
authorities
basket Bug 27268: (QA follow-up) Add Koha::Biblios to basket scripts 2021-03-09 17:20:47 +01:00
bin
C4 Bug 17202: Don't report an item in a collection if the collection doesn't exist 2021-04-28 11:07:06 +02:00
catalogue Bug 28213: Prevent crash if patron or club deleted after search to hold 2021-04-28 11:07:06 +02:00
cataloguing Bug 27739: Advanced editor should use DefaultCountryField008 preference 2021-04-16 12:28:17 +02:00
circ Bug 27896: Remove DeleteTransfer from circ/return.pl 2021-04-23 11:58:49 +02:00
clubs
course_reserves
debian Bug 23207: (QA follow-up) Add to cron files 2021-04-22 11:11:05 +02:00
docs Bug 28244: Fix typo in Ukrainian in history 2021-04-30 17:07:31 +02:00
errors
etc Bug 14300: Add %P to SIP LogPattern 2021-04-21 15:25:07 +02:00
ill
installer Bug 28244: DBRev 20.12.00.044 2021-04-30 17:07:32 +02:00
Koha Bug 28254: (QA follow-up) override -> force 2021-05-04 14:22:08 +02:00
koha-tmpl 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
labels
members Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
misc Bug 27819: Spurious item deletion errors from delete_records_via_leader.pl 2021-04-28 11:16:14 +02:00
offline_circ
opac Bug 23583: Handle OpacHiddenItems with yaml_preference 2021-04-21 15:25:07 +02:00
patron_lists
patroncards Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
plugins
pos Bug 26734: (QA follow-up) Add missing copyright statement 2021-04-27 16:23:49 +02:00
reports Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
reserve Bug 16787: (follow-up) Fix check to ensure reasons are passed to template 2021-04-22 14:50:11 +02:00
reviews
rotating_collections
serials Bug 23243: Adjust previous patch 2021-04-21 15:25:07 +02:00
services
skel
suggestion
svc Bug 27061: Remove duplicate permission check in svc/mana/search 2021-04-30 17:07:32 +02:00
t Bug 28254: Add missing tests for PUT and POST 2021-05-04 15:05:37 +02:00
tags
tmp/modified_authorities
tools Bug 21818: Replace AutoCommit flag with DBIx transaction in stage-marc-import.pl 2021-04-27 16:23:49 +02:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.scss-lint.yml
about.pl Bug 28125: Display a warning on the about page for OPACHiddenItems is needed 2021-04-16 12:28:17 +02:00
app.psgi
changelanguage.pl
cpanfile Bug 28110: Require YAML::XS 0.67 2021-04-14 15:28:12 +02:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 28244: DBRev 20.12.00.044 2021-04-30 17:07:32 +02:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json Bug 27939: Update yarn.lock file 2021-03-16 12:04:06 +01:00
README
README.md
README.robots
rewrite-config.PL
yarn.lock Bug 27939: Update yarn.lock file 2021-03-16 12:04:06 +01:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo