Skip to content

Commit 1b1a2c8

Browse files
committed
Fix item pickup locations check.
1 parent 0740a24 commit 1b1a2c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Koha/Plugin/Fi/KohaSuomi/DI/Koha/Availability/Checks

Koha/Plugin/Fi/KohaSuomi/DI/Koha/Availability/Checks/Item.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ sub pickup_locations {
388388
})->unblessed;
389389

390390
foreach my $library (@$pickup_libraries) {
391-
if (!grep { $library->{branchcode} eq $_->{toBranch} } @$limits
391+
if (!(grep { $library->{branchcode} eq $_->{toBranch} } @$limits)
392392
&& $self->_pickup_location_allowed($library->{branchcode}, $patron, $context_cache)
393393
) {
394394
push @{$pickup_locations}, $library->{branchcode};

0 commit comments

Comments
 (0)