[Koha-bugs] [Bug 633] MARC Upload fails silently

bugzilla-daemon at wilbur.katipo.co.nz bugzilla-daemon at wilbur.katipo.co.nz
Sun Nov 9 23:57:42 CET 2003


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=633





------- Additional Comments From mjr at ttllp.co.uk  2003-11-10 11:57 -------
The above patch results from the following test that shows that $marcrecord is
never undef even if no valid fields are read from the file.

$ perl -MMARC::File::USMARC
print MARC::File::USMARC::decode('')."\n";
MARC::Record=HASH(0x813b988)

Instead, the following test for number of fields is used instead:

$ perl -MMARC::File::USMARC
print MARC::File::USMARC::decode('')->fields()."\n";
0




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Koha-bugs mailing list