Koha/installer
Jonathan Druart bab6a08ac9 Bug 27466: Don't use set_preference from updatedatabase.pl
We must never use subroutines or methods from updatedatabase.pl!

Having it using C4::Context->set_preference will call
Koha::Config::Syspref->store then C4::Log::logaction and finally
Koha::Logger->get which will need the log4perl configured correctly
(which is not necessary the case when you upgrade).

Test plan:
git checkout ed3e4540d7 (20.06.00.022)
reset_all
Set the value of QuoteOfTheDay to 0
git checkout bug_27466 (master + this patch)
updatedatabase
=> QuoteOfTheDay is an empty string
git checkout ed3e4540d7 (20.06.00.022)
reset_all
Set the value of QuoteOfTheDay to 1
git checkout bug_27466 (master + this patch)
updatedatabase
=> QuoteOfTheDay is set to "opac"

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-08 14:55:59 +01:00
..
data/mysql Bug 27466: Don't use set_preference from updatedatabase.pl 2021-02-08 14:55:59 +01:00
externalmodules.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
html-template-to-template-toolkit.pl Bug 25360: (follow-up) Remove the https FIXME in Auth.pm 2020-09-03 10:40:35 +02:00
install.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
onboarding.pl Bug 14866: Make high holds work with different item types 2020-11-06 15:55:17 +01:00