[Koha-bugs] [Bug 6990] TransformKohaToMarc enhancement

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 2 12:10:01 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6990

--- Comment #30 from Janusz Kaczmarek <januszop at gmail.com> 2012-02-02 11:10:01 UTC ---
I can confirm. After switching to current master the error does not occur any
more when playing with mod_perl. But since Nicole was not using mod_perl and
because there was no change to the code of C4::Biblio::TransformKohaToMarc (nor
C4::Context::_new_marcfromkohafield on which it depends), it would mean that
under *unpredictable*circumstances*, not just under mod_perl, it could happen
that the result of the attribution 

$dtm = $db_to_marc->{''}->{$name} 

is something defined (like a reference to an empty table [], as it is in my
case) while it would be rather expected to be undefined. (This is why Nicole,
and me, got $tag being '' in line 1849, etc.)

In that context the version

my $dtm = $db_to_marc->{''}->{$name};
next unless $dtm->[0];

is more verbose, but does the same in a more robust way. 

But since nobody else experienced this error I do not know if I should send a
patch...?

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list