summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Field
diff options
context:
space:
mode:
authorPami Ketolainen <pami.ketolainen@jollamobile.com>2013-04-16 12:14:23 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-04-16 12:14:23 +0200
commite6c6efd5b30f184ac22410808b3bb263eb00779a (patch)
tree73a32c48407fae63685fce06d7021319b649a4de /Bugzilla/Field
parent6b393ecc304b3c239eb0399b53e0c69b918b2334 (diff)
downloadbugzilla-e6c6efd5b30f184ac22410808b3bb263eb00779a.tar.gz
bugzilla-e6c6efd5b30f184ac22410808b3bb263eb00779a.tar.xz
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.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Field/ChoiceInterface.pm b/Bugzilla/Field/ChoiceInterface.pm
index 87354a103..3292536d3 100644
--- a/Bugzilla/Field/ChoiceInterface.pm
+++ b/Bugzilla/Field/ChoiceInterface.pm
@@ -183,6 +183,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