summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@redhat.com>2010-05-25 23:29:51 +0200
committerDavid Lawrence <dkl@redhat.com>2010-05-25 23:29:51 +0200
commit2fee08231d953149cd3c6e77cf4cffbfd9322ad7 (patch)
tree1c286359d41c71095d55213335606e7bcbcfb7c6 /Bugzilla
parente7663671a9a3402c7ee53f81f3f6949a573c17da (diff)
downloadbugzilla-2fee08231d953149cd3c6e77cf4cffbfd9322ad7.tar.gz
bugzilla-2fee08231d953149cd3c6e77cf4cffbfd9322ad7.tar.xz
Bug 567780: When closing a bug as a duplicate, the error "There is no field 'dup_id'" is displayed
r=timello,a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm3
1 files changed, 2 insertions, 1 deletions
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;