[Koha-bugs] [Bug 14004] Add ability to temporarily disable intranetuserjs / opacuserjs
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 14 01:00:54 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14004
Lucas Gass <lucas at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #115064|0 |1
is obsolete| |
--- Comment #4 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 115120
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=115120&action=edit
Bug 14004: Add ability to temporarily disable JS/CSS sysprefs
It would be *super* handy if intranetuserjs and/or opacuserjs could be
temporarily disabled via a check-box or syspref.
Right now, debugging issues in intranetuserjs usuaally starts with copying the
contents into a text file, blanking the syspref and re-testing.
This patch adds this feature by setting syspref via ENV OVERRIDE_SYSPREF
like override via Apache config.
Note that this only works for
Implemented only for preferences :
OPACUserCSS OPACUserJS IntranetUserCSS IntranetUserJS
=> replaced with ' '
intranetcolorstylesheet intranetstylesheet
=> replaced with 0
Test plan :
1) Set some CSS in IntranetUserCSS like : #breadcrumbs{color:red}
2) Go to staff interface home page like : /cgi-bin/koha/mainpage.pl
3) See CSS impact is visible
4) Edit URL : /cgi-bin/koha/mainpage.pl?DISABLE_SYSPREF_IntranetUserCSS=1
5) See CSS impact is not visible
6) Check with the other preferences
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list