[Koha-bugs] [Bug 31441] New: Koha::Item::as_marc_field ignores subfields where kohafield is an empty string

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 23 14:21:47 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31441

            Bug ID: 31441
           Summary: Koha::Item::as_marc_field ignores subfields where
                    kohafield is an empty string
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: julian.maurice at biblibre.com
          Reporter: julian.maurice at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

marc_subfield_structure.kohafield can be NULL, but it can also be an empty
string. But in that case, Koha::Item::as_marc_field ignores them, which means
the resulting MARC::Field object has missing data.  This can produce a bug in
OPAC ISBD view (and probably other places where this method is used)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list