Bug 15862 - Cataloging editor should gracefully handle unknown biblionumbers
Summary: Cataloging editor should gracefully handle unknown biblionumbers
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-19 15:20 UTC by Owen Leonard
Modified: 2020-11-30 21:45 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2016-02-19 15:20:00 UTC
If you try to open a record in the basic MARC editor by passing bad or deleted biblionumber you get an error:

Can't call method "title" on an undefined value at /usr/share/koha/intranet/cgi-bin/cataloguing/addbiblio.pl line 827.

We should show a friendlier error message to the user.
Comment 1 Katrin Fischer 2020-01-08 23:40:04 UTC
Just tested with:

cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=10000000

Received a nice error:


The record you are trying to edit doesn't exist.
Add a new record or do a catalog search.