Bug 15862

Summary: Cataloging editor should gracefully handle unknown biblionumbers
Product: Koha Reporter: Owen Leonard <oleonard>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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.