[Koha-bugs] [Bug 29243] New: PrepareItemrecordDisplay should not be called with empty string in defaultvalues

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 14 13:21:33 CEST 2021


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

            Bug ID: 29243
           Summary: PrepareItemrecordDisplay should not be called with
                    empty string in defaultvalues
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

Bug 27545 expanded the use of NewItemsDefaultLocation, however, it checks for
$defaultvalues undefined.

There are several calls that pass '' (empty string) for default values.

It is expected to be a hashref, so we should pass undef if we don't have
defaults.

Otherwise, we get an error when NewItemsDefaultLocation is set:
Can't use string ("") as a HASH ref while "strict refs" in use at
/usr/share/koha/lib/C4/Items.pm line 1605.

-- 
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