[Koha-bugs] [Bug 14697] Extend and enhance "Claims returned" lost status
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 29 20:21:04 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14697
--- Comment #66 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 94851
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94851&action=edit
Bug 14697: (follow-up) Rely on the UNIQUE constraint and return 409 for
issue_id
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 at theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>
Signed-off-by: Lisette Scheer <lisetteslatah at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list