[Koha-bugs] [Bug 22824] Replace YAML::Syck with YAML::XS
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 15 12:17:54 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22824
--- Comment #44 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Julian Maurice from comment #42)
> (In reply to Jonathan Druart from comment #41)
> > Created attachment 116883 [details] [review] [review]
> > Bug 22824: Prevent YesNo to be filled with invalid values
> >
> > This patch prevents koha-preferences to set other values than 1/0 to be
> > used for YesNo prefs
>
> This patch does not work.
> If I execute
> misc/admin/koha-preferences set viewMARC 2
> it warns "System preference viewMARC is YesNo and expects 1 or 0. '2' was
> given, using '0' (OK)
> but the value is set to '2'. (NOT OK)
Right, I tested it very poorly, sorry about that.
Should work now.
> And the dump subcommand output is different from master. On master it prints
> a serie of
> <sysprefName>: <sysprefValue>
> but with the patches it prints
> <sysprefName>:
> type: <sysprefType>
> value: <sysprefValue>
> variable: <sysprefName>
>
> which prevents to do things like:
>
> koha-preferences dump | koha-preferences load
The dump|load actually worked, but not using a dump generated from master.
I restored the current behaviour.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list