[Bug 39846] New: Holds Queue Local Holds Priority checks items after an item has been allocated
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39846 Bug ID: 39846 Summary: Holds Queue Local Holds Priority checks items after an item has been allocated Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Hold requests Assignee: koha-bugs@lists.koha-community.org Reporter: lisette@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com foreach my $request (@$hold_requests) { ... foreach my $item (@$available_items) { ... if ($local_hold_match) if ( exists $items_by_itemnumber{ $item->{itemnumber} } and not exists $allocated_items{ $item->{itemnumber} } and not $request->{allocated} ) { This code checks each item for local holds priority and then goes to the next item if request is already allocated, but we should check earlier in the loop and go to the next request if the first one is already filled. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org