From 69bce3a706565878184c70cd5a29dbfa7088dcad Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 20 Apr 2023 06:46:57 +0000 Subject: [PATCH] Bug 33567: Remove hardcoded fallback in module Test plan: Run t/db_dependent/XSLT.t again Should pass now. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- C4/XSLT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 2b5c797de4..e86ee03a0f 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -288,7 +288,7 @@ sub buildKohaItemsNamespace { my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } }; my $xml = ''; my %descs = map { $_->{authorised_value} => $_ } Koha::AuthorisedValues->get_descriptions_by_koha_field( { kohafield => 'items.notforloan' } ); - my $ref_status = C4::Context->preference('Reference_NFL_Statuses') || '1|2'; + my $ref_status = C4::Context->preference('Reference_NFL_Statuses') // q{}; # fallback to 1|2 removed while ( my $item = $items->next ) { my $status; -- 2.39.5