diff options
author | mkanat%bugzilla.org <> | 2009-09-30 11:42:50 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-09-30 11:42:50 +0000 |
commit | dc391b5583836b71cc8f68789fb48b712d7fa6b5 (patch) | |
tree | 3398889e7d3232935692e632f572fc26396d5286 /Bugzilla/Config.pm | |
parent | aadb30fd9cb9401d9f1ed9e82dbc02899851d11d (diff) | |
download | bugs-dc391b5583836b71cc8f68789fb48b712d7fa6b5.tar bugs-dc391b5583836b71cc8f68789fb48b712d7fa6b5.tar.gz bugs-dc391b5583836b71cc8f68789fb48b712d7fa6b5.tar.bz2 bugs-dc391b5583836b71cc8f68789fb48b712d7fa6b5.tar.xz bugs-dc391b5583836b71cc8f68789fb48b712d7fa6b5.zip |
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/Config.pm')
-rw-r--r-- | Bugzilla/Config.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 4074abcd1..a20751737 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -199,7 +199,12 @@ sub update_params { my $name = $item->{'name'}; unless (exists $param->{$name}) { print "New parameter: $name\n" unless $new_install; - $param->{$name} = $answer->{$name} || $item->{'default'}; + if (exists $answer->{$name}) { + $param->{$name} = $answer->{$name}; + } + else { + $param->{$name} = $item->{'default'}; + } } } |