[Koha-bugs] [Bug 24644] Hold not marked filled if item set to positive not for loan value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 17 15:28:56 CET 2020


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I have tracked this down a bit. The problem is that MoveReserve (called by
AddIssue) calls CheckReserves:

1863     my ( $restype, $res, undef ) = CheckReserves( $itemnumber, undef,
$lookahead );                 
1864     return unless $res;

Here $res is not defined because of:

 792     # if item is not for loan it cannot be reserved either.....
 793     # except where items.notforloan < 0 :  This indicates the item is
holdable.
 794     return if  ( $notforloan_per_item > 0 ) or $notforloan_per_itemtype;

I have no idea how to fix this and making sure I am not introducing a
regression somewhere else.

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