Koha/t/db_dependent/api/v1
Jonathan Druart 92dbe80902 Bug 27004: Prevent claim resolution to fail
If the account of the patron who created a claim is removed, then the
claim won't be resolvable.
Trying to resolve the claim will result in a 500:
[2020/12/21 10:05:55] [ERROR] PUT /api/v1/return_claims/1/resolve: unhandled exception (Koha::Exceptions::Checkouts::ReturnClaims::NoCreatedBy)<<[created_by is mandatory]>> Koha::REST::Plugin::Exceptions::__ANON

We should not check if created_by exist when we update an existing hold,
only when we create it.

Test plan:
- Login with patron A
- set a value to syspref ClaimReturnedLostValue
- Check an item out
- Claim returned it
- Login with patron B
- Delete patron A
- Resolve the claim
- ERROR in api-error.log an UI never confirming the resolution
- apply patch & restart services
- Resolve the claim
- it works

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-01-04 13:29:47 +01:00
..
acquisitions_funds.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
acquisitions_orders.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
acquisitions_vendors.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
advanced_editor_macros.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
auth.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
auth_authenticate_api_request.t Bug 24003: Regression tests 2020-06-15 10:29:44 +02:00
auth_basic.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
biblios.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
checkouts.t Bug 24083: (QA follow-up) Fix failing tests 2020-11-12 16:51:57 +01:00
cities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
clubs_holds.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
holds.t Bug 27117: Only place_holds permission is needed to adjust pickup locations 2020-12-21 10:07:49 +01:00
illrequests.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
import_batch_profiles.t Bug 23019: (follow-up) Fix test permissions and API definition bugs 2020-11-11 15:55:49 +01:00
items.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
libraries.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
oauth.t Bug 25623: Make sure oauth.t rolls back the db 2020-06-15 11:53:36 +02:00
patrons.t Bug 14708: (QA follow-up) Add tests 2020-11-06 09:40:26 +01:00
patrons_accounts.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
patrons_password.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
return_claims.t Bug 27004: Prevent claim resolution to fail 2021-01-04 13:29:47 +01:00
smtp_servers.t Bug 22343: Add exec flag on .t files 2020-10-05 11:14:32 +02:00
stockrotationstage.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00