Bug 36793: Fix case of $var in Context->delete_preference
This only applies to 'local' preferences.
Test plan (first without this patch):
Add a local pref. Delete it. Ask value on commandline with:
* perl -MC4::Context -e"print C4::Context->preference('YOUR_PREF')"
* Did you replace YOUR_PREF :)
Now repeat with this patch. And verify fix (no value now).
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 8ea126b1f8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 6122b60194)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
eb7d259dd0
commit
d310549dae
|
|
@ -470,6 +470,7 @@ was no syspref of the name.
|
|||
sub delete_preference {
|
||||
my ( $self, $var ) = @_;
|
||||
|
||||
$var = lc $var;
|
||||
if ( Koha::Config::SysPrefs->find( $var )->delete ) {
|
||||
if ( $use_syspref_cache ) {
|
||||
my $syspref_cache = Koha::Caches->get_instance('syspref');
|
||||
|
|
|
|||
Loading…
Reference in New Issue