Bugzilla – Attachment 149922 Details for
Bug 33567
Remove fallback for Reference_NFL_statuses in C4/XSLT module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33567: Remove hardcoded fallback in module
Bug-33567-Remove-hardcoded-fallback-in-module.patch (text/plain), 1.11 KB, created by
Marcel de Rooy
on 2023-04-20 07:03:50 UTC
(
hide
)
Description:
Bug 33567: Remove hardcoded fallback in module
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-04-20 07:03:50 UTC
Size:
1.11 KB
patch
obsolete
>From a38c8d6cb3e1d5c5393e9da1e6372f337115c7a0 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 20 Apr 2023 06:46:57 +0000 >Subject: [PATCH] Bug 33567: Remove hardcoded fallback in module >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run t/db_dependent/XSLT.t again >Should pass now. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33567
:
149921
|
149922
|
149923
|
150837
|
150838
|
150839