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:
parent
f668fecec3
commit
28b155ca1e
1 changed files with 2 additions and 0 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue