From 5151736ba38fb79a811972960753313691226928 Mon Sep 17 00:00:00 2001 From: Pami Ketolainen Date: Tue, 16 Apr 2013 12:12:15 +0200 Subject: Bug 782210: If a custom field depends on a product, component or classification, the "mandatory" bit is ignored on bug creation r/a=LpSolit --- Bugzilla/Field/ChoiceInterface.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla/Field/ChoiceInterface.pm') diff --git a/Bugzilla/Field/ChoiceInterface.pm b/Bugzilla/Field/ChoiceInterface.pm index 24bd57dc9..f7f5e3b73 100644 --- a/Bugzilla/Field/ChoiceInterface.pm +++ b/Bugzilla/Field/ChoiceInterface.pm @@ -171,6 +171,7 @@ sub is_set_on_bug { # This allows bug/create/create.html.tmpl to pass in a hashref that # looks like a bug object. my $value = blessed($bug) ? $bug->$field_name : $bug->{$field_name}; + $value = $value->name if blessed($value); return 0 if !defined $value; if ($self->field->type == FIELD_TYPE_BUG_URLS -- cgit v1.2.3-24-g4f1b