Bugzilla – Attachment 5312 Details for
Bug 6488
opachiddenitems not working in master
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-bug_6488-Added-trailing-n-when-parsing-OpacHiddenIte.patch (text/plain), 1.06 KB, created by
Srdjan Jankovic
on 2011-09-06 02:12:06 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2011-09-06 02:12:06 UTC
Size:
1.06 KB
patch
obsolete
>From 750c381277f13818b75efb4e92642c66fe337da3 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Tue, 6 Sep 2011 13:47:24 +1200 >Subject: [PATCH] bug_6488: Added trailing \n when parsing OpacHiddenItems to make YAML happy > >--- > C4/Items.pm | 7 +++---- > 1 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index bc36dd1..0f098af 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1531,6 +1531,7 @@ sub GetHiddenItemnumbers { > my @resultitems; > > my $yaml = C4::Context->preference('OpacHiddenItems'); >+ $yaml = "$yaml\n"; # YAML is anal on ending \n. Surplus does not hurt > my $hidingrules; > eval { > $hidingrules = YAML::Load($yaml); >@@ -1538,7 +1539,7 @@ sub GetHiddenItemnumbers { > if ($@) { > warn "Unable to parse OpacHiddenItems syspref : $@"; > return (); >- } else { >+ } > my $dbh = C4::Context->dbh; > > # For each item >@@ -1563,9 +1564,7 @@ sub GetHiddenItemnumbers { > } > } > return @resultitems; >- } >- >- } >+} > > =head3 get_item_authorised_values > >-- >1.6.5 >
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 6488
:
5312
|
5314
|
5315
|
5351
|
5477
|
5767
|
6310
|
6687
|
6783
|
7284
|
7386
|
7745
|
7748
|
7957
|
8045
|
8054