Bug 25167: (QA follow-up) Don't add a new variable

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7a87cc310b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2020-10-24 01:51:55 +00:00 committed by Lucas Gass
parent c724a3db1d
commit 949abc2074
1 changed files with 1 additions and 4 deletions

View File

@ -120,10 +120,7 @@ for my $authvfield (@$statuses) {
# if there's a list of not for loans types selected use it rather than
# the full set.
if ($staton->{'items.notforloan'}) {
my @l = @{$staton->{'items.notforloan'}};
@notforloans = @l if scalar @l > 0;
}
@notforloans = @{$staton->{'items.notforloan'}} if defined $staton->{'items.notforloan'} and scalar @{$staton->{'items.notforloan'}} > 0;
my @class_sources = Koha::ClassSources->search({ used => 1 });
my $pref_class = C4::Context->preference("DefaultClassificationSource");