Commit 11fa9ce3 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 472549: Ignore undefined values when committing user pref changes - Patch by…

Bug 472549: Ignore undefined values when committing user pref changes - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 559f8958
......@@ -127,7 +127,6 @@ sub SaveAccount {
$cgi->param('Bugzilla_password')
|| ThrowUserError("old_password_required");
use Bugzilla::Token;
# Block multiple email changes for the same user.
if (Bugzilla::Token::HasEmailChangeToken($user->id)) {
ThrowUserError("email_change_in_progress");
......@@ -183,6 +182,7 @@ sub SaveSettings {
foreach my $name (@setting_list) {
next if ! ($settings->{$name}->{'is_enabled'});
my $value = $cgi->param($name);
next unless defined $value;
my $setting = new Bugzilla::User::Setting($name);
if ($value eq "${name}-isdefault" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment