summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-09-30 13:42:50 +0200
committermkanat%bugzilla.org <>2009-09-30 13:42:50 +0200
commitdc391b5583836b71cc8f68789fb48b712d7fa6b5 (patch)
tree3398889e7d3232935692e632f572fc26396d5286 /Bugzilla/Install
parentaadb30fd9cb9401d9f1ed9e82dbc02899851d11d (diff)
downloadbugzilla-dc391b5583836b71cc8f68789fb48b712d7fa6b5.tar.gz
bugzilla-dc391b5583836b71cc8f68789fb48b712d7fa6b5.tar.xz
Bug 519676: Allow users to set blank/false values for things in checksetup.pl's "answers" file.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/Localconfig.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm
index 971064722..346746655 100644
--- a/Bugzilla/Install/Localconfig.pm
+++ b/Bugzilla/Install/Localconfig.pm
@@ -326,7 +326,12 @@ sub update_localconfig {
if (!defined $localconfig->{$name}) {
push(@new_vars, $name);
$var->{default} = &{$var->{default}} if ref($var->{default}) eq 'CODE';
- $localconfig->{$name} = $answer->{$name} || $var->{default};
+ if (exists $answer->{$name}) {
+ $localconfig->{$name} = $answer->{$name};
+ }
+ else {
+ $localconfig->{$name} = $var->{default};
+ }
}
}