https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41834 --- Comment #23 from Jonathan Druart <jonathan.druart@gmail.com> --- (In reply to Jonathan Druart from comment #22)
Created attachment 195688 [details] [review] Bug 41834: Set pref to 0 if '' passed for YesNo
This is a bit ugly, we do that already in t/db_dependent/check_sysprefs.t We could have this moved to a "is_boolean" method of Koha::Config::SyspPref (LATER)
This patch fixes: prove t/db_dependent/Context.t t/db_dependent/Context.t .. 1/6 # Failed test 'set_preference should have set the value to 0, instead of an empty string' # at t/db_dependent/Context.t line 142. # got: '' # expected: '0' # Looks like you failed 1 test of 22. # Failed test 'Tests with preferences' # at t/db_dependent/Context.t line 145. # Looks like you failed 1 test of 6. -- You are receiving this mail because: You are watching all bug changes.