[Koha-bugs] [Bug 19889] LocalHoldsPriority needs exclusions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 7 11:25:35 CEST 2020


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

--- Comment #60 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Scratching my head, is the following condition correct?

C4::HoldsQueue::MapItemsToHoldRequests

409                 next
410                   if ( !$item->{holdallowed} )
411                   || ( $item->{holdallowed} == 1
412                     && $item->{homebranch} ne $request->{borrowerbranch}
413                   || $item->{_object}->exclude_from_local_holds_priority );

Should not we exclude it in any cases?
It's correct but read it is confusing, I would expect it to be more explicit:

409                 next
410                   if !$item->{holdallowed}
411                   || ( $item->{holdallowed} == 1
412                     && $item->{homebranch} ne $request->{borrowerbranch} )
413                   || $item->{_object}->exclude_from_local_holds_priority

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


More information about the Koha-bugs mailing list