[Koha-bugs] [Bug 30630] Checking in a waiting hold at another branch when HoldsAutoFill is enabled causes errors

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 27 17:31:27 CEST 2022


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Checking in a waiting hold  |Checking in a waiting hold
                   |at another branch \ when    |at another branch when
                   |                            |HoldsAutoFill is enabled
                   |                            |causes errors
         Depends on|                            |23070

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
To recreate:
1 - Enable HoldsAutoFill
2 - Place a title level hold
3 - Check in an item and confirm hold
4 - Switch to another branch
5 - Checkin the item, get an error:
Can't call method "biblionumber" on an undefined value at
/kohadevbox/koha/C4/Reserves.pm line 1577.
 at /kohadevbox/koha/C4/Reserves.pm line 1576
6- This causes lingering issues because the hold is now in-transit but has no
itemnumber

Root seems to be in circ/returns.pl:
477         ModReserveAffect( $reserve->{itemnumber},
$reserve->{borrowernumber}, $diffBranchSend, $reserve->{reserve_    id},
$desk_id );


RevertWaitingStatus has already removed the itemnumber from the hold, passing
$itemnumber (from scanned item) should work, as it will reattach the hold to
the item


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23070
[Bug 23070] Use Koha::Hold in C4::Reserves::RevertWaitingStatus
-- 
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