[Bug 12139] New: Preference name saved all lowercase
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12139 Bug ID: 12139 Summary: Preference name saved all lowercase Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: System Administration Assignee: koha-bugs@lists.koha-community.org Reporter: pasi.kallinen@pttk.fi QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com If a preference doesn't exist in the database, saving that preference via the UI will result the preference name set in all lowercase in the database. This means those preferences that have any uppercase characters won't find the value, eg. in templates. To test: 1) select * from systempreferences where variable like 'advancedMARCeditor'; (note the way the "variable" is in db: "advancedMARCeditor") 2) delete from systempreferences where variable like 'advancedMARCeditor'; 3) Go to system preferences, edit and save advancedMARCeditor setting. 4) select * from systempreferences where variable like 'advancedMARCeditor'; (note the way the "variable" is in db: "advancedmarceditor") -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12139 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch --- Comment #1 from Marc Véron <veron@veron.ch> --- I could reproduce this following the test steps. Additional remarks: The system log logs the variable name correctly ('advancedMARCeditor') As far as I can trace it down, the involved code is in admin/systempreferences.pl around line 284 or around line 355 However, the insert statement and the log statement use the same value at both places: $input->param('variable') -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12139 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Jonathan Druart <jonathan.druart@biblibre.com> --- Looks good now, I did not manage to recreate this issue. Please reopen if I am wrong. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org