use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::Bug;
+use Bugzilla::Classification;
use Bugzilla::Product;
use Bugzilla::Component;
use Bugzilla::Mailer;
my $product = new Bugzilla::Product($values{product_id});
$values{product} = $product->name;
+ $values{classification} = Bugzilla::Classification->new($product->classification_id)->name;
my $component = new Bugzilla::Component($values{component_id});
$values{component} = $component->name;
neworchanged => $isnew ? 'New: ' : '',
to => $user->email,
bugid => $id,
+ alias => Bugzilla->params->{'usebugaliases'} ? $values{'alias'} : "",
+ classification => $values{'classification'},
product => $values{'product'},
comp => $values{'component'},
keywords => $values{'keywords'},
status => $values{'bug_status'},
priority => $values{'priority'},
assignedto => $values{'assigned_to'},
+ assignedtoname => Bugzilla::User->new({name => $values{'assigned_to'}})->name,
targetmilestone => $values{'target_milestone'},
changedfields => $values{'changed_fields'},
summary => $values{'short_desc'},
reasonswatchheader => join(" ", @watchingrel),
changer => $values{'changer'},
changername => $values{'changername'},
+ reporter => $values{'reporter'},
+ reportername => Bugzilla::User->new({name => $values{'reporter'}})->name,
diffs => $diffs,
threadingmarker => $threadingmarker
};
X-Bugzilla-Reason: [% reasonsheader %]
X-Bugzilla-Type: newchanged
X-Bugzilla-Watch-Reason: [% reasonswatchheader %]
+[% IF Param('useclassification') %]
+X-Bugzilla-Classification: [% classification %]
+[% END %]
X-Bugzilla-Product: [% product %]
X-Bugzilla-Component: [% comp %]
X-Bugzilla-Keywords: [% keywords %]