summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-01-30 16:45:56 +0100
committerByron Jones <bjones@mozilla.com>2013-01-30 16:45:56 +0100
commitd37a5ae88310c199444e6b010fbb00bc268f5b67 (patch)
tree40284ea1c89706eade52b066dae55d10c45ab853 /Bugzilla
parentd816479d7c4f57e2a7891de104d46732d2e3066c (diff)
downloadbugzilla-d37a5ae88310c199444e6b010fbb00bc268f5b67.tar.gz
bugzilla-d37a5ae88310c199444e6b010fbb00bc268f5b67.tar.xz
Fix $field being undef for the field_end_of_create hook
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Field.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm
index 8ebf08672..f237182c2 100644
--- a/Bugzilla/Field.pm
+++ b/Bugzilla/Field.pm
@@ -1047,7 +1047,7 @@ sub create {
$class->check_required_create_fields(@_);
my $field_values = $class->run_create_validators($params);
my $visibility_values = delete $field_values->{visibility_values};
- my $field = $class->insert_create_data($field_values);
+ $field = $class->insert_create_data($field_values);
$field->set_visibility_values($visibility_values);
$field->_update_visibility_values();