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.json | ||
acquisitions_vendors.json | ||
biblios.json | ||
checkouts.json | ||
cities.json | ||
clubs.json | ||
holds.json | ||
illrequests.json | ||
items.json | ||
libraries.json | ||
oauth.json | ||
patrons.json | ||
patrons_account.json | ||
patrons_password.json | ||
public_patrons.json | ||
return_claims.json | ||
rotas.json |