[Koha-bugs] [Bug 34156] New: C4::Acquisition::FillWithDefaultValues handles leader incorrectly

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 29 14:47:26 CEST 2023


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

            Bug ID: 34156
           Summary: C4::Acquisition::FillWithDefaultValues handles leader
                    incorrectly
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Acquisitions
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

When adding to a basket from a new empty record, we call FillWithDefaultValues
on the record from the form.

In MARC::Record the leader is obtained via $record->leader
But FillWithDefaultValues uses the tags form 'GetMarcStructure' where leader is
000
So when you add the record, we don't find a 000 and so add a field

We end up with a record with the original leader, and a controlfield=000 with
the default value.

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


More information about the Koha-bugs mailing list