Skip to content
Snippets Groups Projects
Commit cb27b681 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fix request group handling in hold function

- it is possible for there to be more than one request group for an item level hold.
parent 99fc2776
No related merge requests found
......@@ -100,7 +100,8 @@ trait HoldsTrait
$requestGroupNeeded = in_array('requestGroup', $extraHoldFields)
&& !empty($requestGroups)
&& (empty($gatheredDetails['level'])
|| $gatheredDetails['level'] != 'copy');
|| ($gatheredDetails['level'] != 'copy'
|| count($requestGroups) > 1));
$pickupDetails = $gatheredDetails;
if (!$requestGroupNeeded && !empty($requestGroups)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment