[Koha-bugs] [Bug 29553] New: Reserves: Can't call method "notforloan" on an undefined value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 22 11:52:15 CET 2021


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

            Bug ID: 29553
           Summary: Reserves: Can't call method "notforloan" on an
                    undefined value
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Hold requests
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: m.de.rooy at rijksmuseum.nl
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

C4::Reserves::IsAvailableForItemLevelRequest
    my $itemtype = $item->effective_itemtype;
    my $notforloan_per_itemtype = Koha::ItemTypes->find($itemtype)->notforloan;

If you have set item level itypes to biblioitems, but your biblioitem record
has itemtype NULL, placing a hold will crash. (You must have an item too.)

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


More information about the Koha-bugs mailing list