Koha-clms/installer/data/mysql
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
..
atomicupdate Bug 25552: DBRev 20.12.00.008 2021-02-01 17:25:22 +01:00
en Bug 27530: Set correct dateofbirth for 'C' 2021-02-01 16:32:39 +01:00
fr-CA Bug 24811: French SQL files "news" link fixed 2021-01-22 13:49:25 +01:00
fr-FR Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
it-IT Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
localization Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
mandatory Bug 25552: Add missing Claims Returned option to MarkLostItemsAsReturned 2021-02-01 17:20:37 +01:00
nb-NO Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
pl-PL Bug 27103: Remove HOLD_CANCELLATION notice 2020-11-27 13:00:38 +01:00
ru-RU Bug 27491: Rename system preference opaclanguages to OPACLanguages 2021-01-22 14:59:27 +01:00
uk-UA Bug 11996: (follow-up) Updating the uk-UA currency 2021-01-22 13:46:42 +01:00
backfill_statistics.pl Bug 13795: Remove occurences of unused columns in code 2019-04-18 10:05:51 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
kohastructure.sql Bug 26947: Remove AUTO_INCREMENT 2021-01-12 12:31:58 +01:00
labels_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
patroncards_upgrade.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
update22to30.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
updatedatabase.pl Bug 27466: Don't use set_preference from updatedatabase.pl 2021-02-08 14:55:59 +01:00