Bugzilla – Attachment 115871 Details for
Bug 14004
Add ability to temporarily disable added CSS and Javascript in OPAC and interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14004: Set the syspref's value to an empty string
Bug-14004-Set-the-sysprefs-value-to-an-empty-strin.patch (text/plain), 1.25 KB, created by
Jonathan Druart
on 2021-01-27 11:04:36 UTC
(
hide
)
Description:
Bug 14004: Set the syspref's value to an empty string
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-01-27 11:04:36 UTC
Size:
1.25 KB
patch
obsolete
>From 09c7d471f59856233ab4634f1070e923b1eaa7c1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 27 Jan 2021 12:03:33 +0100 >Subject: [PATCH] Bug 14004: Set the syspref's value to an empty string > >It's tested with "defined" in C4::Context->preference >--- > C4/Auth.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index cef3cb4755..419246b868 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -443,10 +443,10 @@ sub get_template_and_user { > # Sysprefs disabled via URL param > # Note that value must be defined in order to override via ENV > foreach my $syspref ( qw( OPACUserCSS OPACUserJS IntranetUserCSS IntranetUserJS ) ) { >- $ENV{"OVERRIDE_SYSPREF_$syspref"} = q{ } if $in->{'query'}->param("DISABLE_SYSPREF_$syspref"); >+ $ENV{"OVERRIDE_SYSPREF_$syspref"} = q{} if $in->{'query'}->param("DISABLE_SYSPREF_$syspref"); > } > foreach my $syspref ( qw( intranetcolorstylesheet intranetstylesheet ) ) { >- $ENV{"OVERRIDE_SYSPREF_$syspref"} = 0 if $in->{'query'}->param("DISABLE_SYSPREF_$syspref"); >+ $ENV{"OVERRIDE_SYSPREF_$syspref"} = q{} if $in->{'query'}->param("DISABLE_SYSPREF_$syspref"); > } > > # Anonymous opac search history >-- >2.20.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 14004
:
115064
|
115120
|
115567
|
115583
|
115584
|
115589
|
115590
|
115871
|
115874
|
115876
|
115883