[Koha-bugs] [Bug 27330] Wrong return status when no enrollments in club holds
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 2 15:28:20 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27330
--- Comment #32 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #29)
> + unless ($item) {
> + return $c->render(
> + status => 404,
> + openapi => { error => "item_id not found." }
> + );
> + }
>
> [...]
>
> + elsif ($biblio_id) {
> + $biblio = Koha::Biblios->find($biblio_id);
> + }
> + else {
> + return $c->render(
> + status => 400,
> + openapi => { error => "At least one of biblio_id, item_id
> should be given" }
> + );
>
>
> Is that correct? (404 vs 400)
Wrong line, but good catch :-D
Fixed on bug 27593.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list