Bugzilla – Attachment 150838 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.14 KB, created by
Jonathan Druart
on 2023-05-09 10:23:13 UTC
(
hide
)
Description:
Bug 33567: Remove hardcoded fallback in module
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-09 10:23:13 UTC
Size:
1.14 KB
patch
obsolete
>From a9469bdf4fd0563b7256f15cbf380a22833cfbd0 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 > >Test plan: >Run t/db_dependent/XSLT.t again >Should pass now. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/XSLT.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index 2b5c797de4a..e86ee03a0f1 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.25.1
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