[Koha-bugs] [Bug 8401] Search term deleted from system preference content

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 16 17:05:25 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8401

--- Comment #3 from Fred P <fred.pierre at smfpl.org> ---
Example: Search for "opac" in the global system preferences. The search term
"opac" will mysteriously vanish from OPACUserCSS entries that contain the term.
Our pseudo-class "#opac-main" becomes "#-main"

The same thing happens when searching for self-checkout css. I am searching for
SCO to change the SCOUserCSS. All of my css entries for SCOUserCSS show up with
the letter combination "sco" edited out. 

The result of this bug is that when I re-save the css changes, my custom css
breaks because the entries are saved as "-main" instead of "opac-main" or
"selfhelp" instead of "scoselfhelp"

The same thing happens to custom javascript code. For example in the SCOUserJS:
"document.write(myscore);" becomes "document.write(myre);"

The workflow at issue is:
1. Use the same term or letter combination in your custom css or javascript as
part of the preference name. Enter your custom css and javascript in the global
system preferences.

2. Search for the preference using part of the name.
< Search term drops out of css and javascript >

3. Make a change to the preferences and save.
< site css and javascript suddenly broken >

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list