From 2fee08231d953149cd3c6e77cf4cffbfd9322ad7 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 25 May 2010 17:29:51 -0400 Subject: Bug 567780: When closing a bug as a duplicate, the error "There is no field 'dup_id'" is displayed r=timello,a=LpSolit --- Bugzilla/Bug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index f0fc46f55..fb4972782 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; -- cgit v1.2.3-24-g4f1b