]> git.koha-community.org Git - koha.git/commit
kohabug 2141 - avoid carp on display of details of deleted bib
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 19 May 2008 19:28:36 +0000 (14:28 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 19 May 2008 21:07:08 +0000 (16:07 -0500)
commit144378a198ea58d33b5ca122006d92a625357c66
treec39a467021e2628909003bdbe86b2954c60e0353
parent35ff682f6f6ad45d5ea2ae631d259961f1d4c604
kohabug 2141 - avoid carp on display of details of deleted bib

When displaying details of bib in staff interface, check
that bib actually exists and display 404 page if not.  Avoids
following fatal error:

Can't call method "field" on an undefined value at /home/gmc/koha/dev/C4/Biblio.pm line 944.

This situtation can arise when running Zebra; if a bib is deleted,
Zebra will not necessarily be reindexed instantly, allowing a link
from a search result list to point to a missing record.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
catalogue/detail.pl