summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Field
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-04-19 00:55:59 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-04-19 00:55:59 +0200
commitc69cbc8008696c82747b833bca5cfa2faf9c1594 (patch)
tree6611bbb98833e2081af78a454465424c1b035e05 /Bugzilla/Field
parent01848b6f328992497d8b25b3057893c086de7751 (diff)
parent2aecaaf29af1866367a362bbd57c6b5258d6440e (diff)
downloadbugzilla-c69cbc8008696c82747b833bca5cfa2faf9c1594.tar.gz
bugzilla-c69cbc8008696c82747b833bca5cfa2faf9c1594.tar.xz
merged with bugzilla/4.2
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