diff options
author | Colin Joy <bugzilla@colinjoy.net> | 2015-09-24 18:07:03 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-09-24 18:07:34 +0200 |
commit | c8f8dd1b5fa77e1cf58ca35fe4bcaf5741b4cc3f (patch) | |
tree | b0b9e3de127ac3c652d17ce7a2449a8ac26b952d /Bugzilla/User | |
parent | dbeeacc33b7e25fb3bbf1e8fa49da7937f62fe8f (diff) | |
download | bugzilla-c8f8dd1b5fa77e1cf58ca35fe4bcaf5741b4cc3f.tar.gz bugzilla-c8f8dd1b5fa77e1cf58ca35fe4bcaf5741b4cc3f.tar.xz |
Bug 1201809: The default value for user settings cannot be false
r/a=dkl
Diffstat (limited to 'Bugzilla/User')
-rw-r--r-- | Bugzilla/User/Setting.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User/Setting.pm b/Bugzilla/User/Setting.pm index ea3bbfb54..aece3b7de 100644 --- a/Bugzilla/User/Setting.pm +++ b/Bugzilla/User/Setting.pm @@ -127,7 +127,7 @@ sub add_setting { my $exists = _setting_exists($name); return if ($exists && !$force_check); - ($name && $default_value) + ($name && length( $default_value // '' )) || ThrowCodeError("setting_info_invalid"); if ($exists) { |