Bug 23391: Remove warnings

t/db_dependent/api/v1/illrequests.t .. Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61.
Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61.
Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61.
Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61.
Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61.
t/db_dependent/api/v1/illrequests.t .. ok

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-07-20 17:44:40 +02:00
parent 884b3e71d8
commit 730df3b1a5

View file

@ -56,7 +56,7 @@ sub list {
}
# Get the pipe-separated string of hidden ILL statuses
my $hidden_statuses_string = C4::Context->preference('ILLHiddenRequestStatuses');
my $hidden_statuses_string = C4::Context->preference('ILLHiddenRequestStatuses') // q{};
# Turn into arrayref
my $hidden_statuses = [ split /\|/, $hidden_statuses_string ];