]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 11 May 2023 19:56:08 +0000 (16:56 -0300)
commitc1fe7406b9f4a3d253ed282f2cb510258dac732e
tree602e3692f59b4dbd0d56b7f13256e0537f5b909c
parentd236f73fbc60c6576b5aa21d84a26334f298214c
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>
Koha/REST/V1/Biblios/ItemGroups.pm