[Koha-bugs] [Bug 7825] Change OPACItemHolds syspref to be of type Choice, choices being "no", "yes", "force"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 18 10:39:58 CEST 2012


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

--- Comment #15 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to comment #14)
> No disrespect, I understand the motivation, but I deliberately created 7854
> in order to be able to avoid 0, 1, force. I could have done it that way
> myself, but it is wrong and perpetuates a deficiency in the config system

Hi Srdjan!
The values 'yes' and 'no' can't be choosen for systempreferences.
When you change the value of OPACItemHolds using the interface
(preferences.pl), only 'force' is keep. 'yes' and 'no' are respectively
replaced with 1 and ''.
So you can't use the comparaison with 'yes' in the template.

This behaviour is due to the YAML::Syck::ImplicitTyping flag set to on (see
http://search.cpan.org/~toddr/YAML-Syck-1.21/lib/YAML/Syck.pm#$YAML::Syck::ImplicitTyping).

The simpliest way is to change 'yes' and 'no' with 'allow' and 'noallow' for
example.

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


More information about the Koha-bugs mailing list