summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 9980535ce..59b911878 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -619,7 +619,16 @@ sub _get_new_bugmail_fields {
my $value = $bug->$name;
if (ref $value eq 'ARRAY') {
- $value = join(', ', @$value);
+ my @new_values;
+ foreach my $item (@$value) {
+ if (blessed($item) && $item->isa('Bugzilla::User')) {
+ push(@new_values, $item->login);
+ }
+ else {
+ push(@new_values, $item);
+ }
+ }
+ $value = join(', ', @new_values);
}
elsif (blessed($value) && $value->isa('Bugzilla::User')) {
$value = $value->login;