Commit 2fee0823 authored by David Lawrence's avatar David Lawrence

Bug 567780: When closing a bug as a duplicate, the error "There is no field 'dup_id'" is displayed

r=timello,a=LpSolit
parent e7663671
......@@ -1693,7 +1693,8 @@ sub _check_field_is_mandatory {
my ($invocant, $value, $field, $params) = @_;
if (!blessed($field)) {
$field = Bugzilla::Field->check({ name => $field });
$field = Bugzilla::Field->new({ name => $field });
return if !$field;
}
return if !$field->is_mandatory;
......
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