Tomas Cohen Arazi
40e841da98
This patch avoids querying the DB for an already existing Koha::Checkouts::ReturnClaim with the same issue_id, now that there's a UNIQUE constraint on it. Also, 409 should be returned instead. Tests added for this changes. To test: - Apply this patch - Run: $ kshell k$ prove t/db_dependent/api/v1/return_claims.t => SUCCESS: tests pass! Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Lisette Scheer <lisetteslatah@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> |
||
---|---|---|
.. | ||
acquisitions_funds.t | ||
acquisitions_vendors.t | ||
auth.t | ||
auth_authenticate_api_request.t | ||
auth_basic.t | ||
biblios.t | ||
checkouts.t | ||
cities.t | ||
clubs_holds.t | ||
holds.t | ||
illrequests.t | ||
items.t | ||
libraries.t | ||
oauth.t | ||
patrons.t | ||
patrons_accounts.t | ||
patrons_password.t | ||
return_claims.t | ||
stockrotationstage.t |