[Koha-bugs] [Bug 23117] additem.pl crashes on nonexistent biblionumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 13 18:09:51 CEST 2019


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

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 90580
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90580&action=edit
Bug 23117: Shortcut additem.pl on nonexistent biblionumber

To prevent additem.pl to crash when called with a nonexistent
biblionumber we are here implementing the blocking_error.inc trick to
display a friendly message instead.

Can't call method "fields" on an undefined value at
/home/vagrant/kohaclone/cataloguing/additem.pl line 736.

Test plan:
hit
/cataloguing/additem.pl?biblionumber=
/cataloguing/additem.pl?biblionumber=424242
You will get a friendly "Bibliographic record not found." message,
instead of a 500

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list