Fix custom field creation

hinted-selects
Vitaliy Filippov 2014-10-22 17:56:19 +04:00
parent 7ad0eec801
commit d8492bf940
2 changed files with 3 additions and 1 deletions

View File

@ -1317,6 +1317,8 @@ sub run_create_validators
$params->{default_value} = undef;
}
$params->{has_activity} = 0;
return $params;
}

View File

@ -57,7 +57,7 @@ elsif ($action eq 'new')
check_token_data($token, 'add_field');
my $field = $vars->{field} = Bugzilla::Field->create({
map { ($_ => $ARGS->{$_}) } Bugzilla::Field->DB_COLUMNS,
(map { ($_ => $ARGS->{$_}) } Bugzilla::Field->DB_COLUMNS),
custom => 1,
is_mandatory => !$ARGS->{nullable},
});