[Koha-bugs] [Bug 9404] New: Search of global system preferences deletes css and js code on Save

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 16 16:50:22 CET 2013


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

            Bug ID: 9404
           Summary: Search of global system preferences deletes css and js
                    code on Save
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: System Administration
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: fred.pierre at smfpl.org
                CC: gmcharlt at gmail.com

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