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

            Bug ID: 36891
           Summary: Restore returning 404 from svc/bib when the bib number
                    doesn't exist
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Cataloging
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

Prior to bug 29697, svc/bib used GetMarcBiblio which returned undef if the
requested bib number didn't exist, and returned a 404 if the record was
undefined. That was switched to using Koha::Biblios->find, which returns undef
if the bib number doesn't exist, and then calling undef->metadata->record,
which doesn't go well. The if  (defined $record) just needs to move up a line
and be if  (defined $biblio) on the return from the call that actually does
return undef.

-- 
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