]> git.koha-community.org Git - koha.git/commit
Bug 33053: Handle invalid biblio_id more robustly
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 11 May 2023 19:54:26 +0000 (16:54 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 May 2023 15:31:52 +0000 (16:31 +0100)
commit566117b2e75250a747245e55d74b0454bf8a291a
tree3cd8a9a732e6599a7c7105faaec3811b38cc9be7
parent7324b403ba32a19e719d948e076ea52b2bd19d54
Bug 33053: Handle invalid biblio_id more robustly

This patch addresses the fact the invalid FK error might differ under
some circumstances. We could try to catch the exception adding another
case, but I think this pattern is cleaner and the authors didn't provide
a fix.

We can discuss it later, as this controller class has several things to
review.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Biblios/ItemGroups.pm