http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7252 Bug #: 7252 Summary: Lists inaccessible when one or more MARC records listed have been deleted Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 - low Component: Virtual Shelves AssignedTo: gmcharlt@gmail.com ReportedBy: oleonard@myacpl.org QAContact: ian.walls@bywatersolutions.com If you delete a title which is on someone's list, that list can no longer be accessed because of an error: Can't call method "field" on an undefined value at C4/Koha.pm line 1217. The line in question is part of GetNormalizedUPC: @fields = $record->field('024'); Called by VirtualShelves/Page.pm: $this_item->{'normalized_upc'} = GetNormalizedUPC($record,$marcflavour); Seems like there's several things that can be done here: 1. Remove titles from lists when they are deleted. The disadvantage here is that someone might have been using a list as a bibliography, for instance, and losing the title makes their information incomplete. To follow up: 2. Add error handling to VirtualShelves/Page.pm. Don't try to pull the full MARC data for a biblionumber which doesn't exist. Some choices for the display: a. Pretend nothing happened, title never existed b. Indicate that a title was removed, no information available. c. Indicate that a title was removed, pull basic info from deletedbiblio. 3. Add error handling to Koha.pm. Don't die if an empty record gets passed. This seems like a no-brainer. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.