Bug 22284: (follow-up) Default to circulation control branch when no hold libraries are found

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Agustin Moyano 2019-04-29 23:07:28 -03:00 committed by Martin Renvoize
parent f668fecec3
commit 28b155ca1e
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -326,6 +326,8 @@ sub pickup_locations {
if ($branchitemrule->{hold_fulfillment_policy} eq 'holdgroup') {
@libs = $library->get_hold_libraries;
my $circ_control_library = Koha::Libraries->find($circ_control_branch);
push @libs, $circ_control_library unless scalar(@libs) > 0;
} elsif ($branchitemrule->{hold_fulfillment_policy} eq 'homebranch') {
push @libs, $self->home_branch;
} elsif ($branchitemrule->{hold_fulfillment_policy} eq 'holdingbranch') {