]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 567780: When closing a bug as a duplicate, the error "There is no field 'dup_id...
authorDavid Lawrence <dkl@redhat.com>
Tue, 25 May 2010 21:29:51 +0000 (17:29 -0400)
committerDavid Lawrence <dkl@redhat.com>
Tue, 25 May 2010 21:29:51 +0000 (17:29 -0400)
r=timello,a=LpSolit

Bugzilla/Bug.pm

index f0fc46f5568ed979da8d80cda212f42f20525b65..fb4972782af4e383c55a11bc4247c3e768816823 100644 (file)
@@ -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;