https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14697
--- Comment #66 from Kyle M Hall <k...@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 <tomasco...@theke.io> Signed-off-by: Andrew Fuerste-Henry <and...@bywatersolutions.com> Signed-off-by: Lisette Scheer <lisettesla...@gmail.com> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/