[Koha-bugs] [Bug 19302] Pass objects to IsAvailableForItemLevelRequest

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Oct 29 22:58:10 CET 2017


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

--- Comment #2 from Josef Moravec <josef.moravec at gmail.com> ---
Comment on attachment 67124
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67124
Bug 19302: Send koha::objects to C4::Reserves::IsAvailableForItemLevelRequest

Review of attachment 67124:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19302&attachment=67124)
-----------------------------------------------------------------

::: C4/Circulation.pm
@@ +2665,5 @@
> +                next if IsItemOnHoldAndFound( $itemnumber );
> +                for my $borrowernumber (@borrowernumbers) {
> +                    my $patron = $patrons{$borrowernumber} //= Koha::Patrons->find( $borrowernumber );
> +                    next unless IsAvailableForItemLevelRequest($item, $patron);
> +                    next unless CanItemBeReserved($b,$itemnumber);

Shouldn't $b be $borrowernumber ?

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


More information about the Koha-bugs mailing list