Bug 3520

Summary: crash when adding or editing item record
Product: Koha Reporter: Galen Charlton <gmcharlt>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: PATCH-Sent (DO NOT USE) CC: martin.brenner
Version: Main   
Hardware: PC   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Chris Cormack 2010-05-21 01:11:41 UTC


---- Reported by gmcharlt@gmail.com 2009-08-11 14:46:12 ----

Adding or editing an item record in the staff interface results in the following crash:

Can't call method "append_fields" on an undefined value at /usr/local/share/perl/5.10.0/MARC/File/SAX.pm line 92.
 at /usr/local/share/perl/5.10.0/MARC/File/SAX.pm line 92

This is triggered if MARC::File::XML 0.91 or later is installed.  Investigation showed that TransformHtmlToXml(), used to convert the item form input to a MARCXML blob, was generating invalid XML by omitting the <record> element; as of MARC::File::XML 0.91, MARC::Record->new_from_xml() now expects to be given a valid MARCXML $blob, and crashes if it doesn't receive one.



---- Additional Comments From gmcharlt@gmail.com 2009-08-11 14:50:38 ----

Submitted patch.



---- Additional Comments From gmcharlt@gmail.com 2009-08-11 14:54:35 ----

Patch pushed.



---- Additional Comments From gmcharlt@gmail.com 2009-08-11 16:17:17 ----

Confirmed fixed by Garry Collum.



---- Additional Comments From martin.brenner@whitfieldschool.org 2009-10-01 21:12:07 ----

How do I get this patch? I am having this same problem. I appologize if this is a dumb question. I am new to Koha and have just installed it on Ubuntu 8.10.



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:11 UTC  ---

This bug was previously known as _bug_ 3520 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3520

Actual time not defined. Setting to 0.0