diff options
author | Pami Ketolainen <pami.ketolainen@jollamobile.com> | 2013-04-16 12:12:15 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-16 12:12:15 +0200 |
commit | 5151736ba38fb79a811972960753313691226928 (patch) | |
tree | 50a35bc3cb1368955a661dce023d8ec61ae45ec7 /Bugzilla/Field | |
parent | c3b6bc6e25fff9a263d6b4208e09dd8494d4034c (diff) | |
download | bugs-5151736ba38fb79a811972960753313691226928.tar bugs-5151736ba38fb79a811972960753313691226928.tar.gz bugs-5151736ba38fb79a811972960753313691226928.tar.bz2 bugs-5151736ba38fb79a811972960753313691226928.tar.xz bugs-5151736ba38fb79a811972960753313691226928.zip |
Bug 782210: If a custom field depends on a product, component or classification, the "mandatory" bit is ignored on bug creation
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Field')
-rw-r--r-- | Bugzilla/Field/ChoiceInterface.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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 |