[Bug 7854] New: preferences.pl: cannot have choice options of yes and no
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7854 Priority: P5 - low Change sponsored?: --- Bug ID: 7854 CC: gmcharlt@gmail.com Assignee: paul.poulain@biblibre.com Summary: preferences.pl: cannot have choice options of yes and no QA Contact: koha.sekjal@gmail.com Severity: enhancement Classification: Unclassified OS: All Reporter: srdjan@catalyst.net.nz Hardware: All Status: NEW Version: master Component: System Administration Product: Koha $YAML::Syck::ImplicitTyping is set, thus preventing yes and no choices. This should be turned off and explicit translations provided. So far I've identifired: All: null => "" YesNo: yes => 1, no => 0 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7854 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |7825 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7854 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |In Discussion CC| |kyle@bywatersolutions.com --- Comment #1 from Kyle M Hall <kyle@bywatersolutions.com> --- I may be wrong, but if we remove the implicit type, won't that screw up pretty much every existing YesNo system preference? We would have to find every reference for every YesNo pref and change the conditional tests. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7854 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|7825 | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7854 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz --- Comment #2 from Chris Cormack <chris@bigballofwax.co.nz> --- No, if we explicitly type YesNo as a boolean, like Srdjan has shown, then we have to change none of the YesNo prefs. And the Choice ones will work the way they should. IE Yes becomes 1, only when it's used with a boolean field (as it should). -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org