https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27330

--- Comment #29 from Jonathan Druart <[email protected]> 
---
+            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)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
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/

Reply via email to