From: David Lawrence Date: Tue, 25 May 2010 21:29:51 +0000 (-0400) Subject: Bug 567780: When closing a bug as a duplicate, the error "There is no field 'dup_id... X-Git-Tag: bugzilla-3.7.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fee08231d953149cd3c6e77cf4cffbfd9322ad7;p=thirdparty%2Fbugzilla.git Bug 567780: When closing a bug as a duplicate, the error "There is no field 'dup_id'" is displayed r=timello,a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index f0fc46f556..fb4972782a 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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;