summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-08-05 17:15:17 +0200
committerlpsolit%gmail.com <>2008-08-05 17:15:17 +0200
commit202409b6ef051db2b8243004ec711bbf7a9b8e79 (patch)
tree5dbe7ec93fd0f9f6697e9ae5199002443c362ecc /Bugzilla/BugMail.pm
parent3ca61bf7f2a691ba5e08a73f710ec47e8c149dba (diff)
downloadbugzilla-202409b6ef051db2b8243004ec711bbf7a9b8e79.tar.gz
bugzilla-202409b6ef051db2b8243004ec711bbf7a9b8e79.tar.xz
Bug 449184: Classification should not appear in new bugmail when useclassification = 0 - Patch by A.A. Shimono (himorin) <shimono@mozilla.gr.jp> r/a=LpSolit
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 2f132e2de..dc48e83de 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -137,7 +137,9 @@ sub Send {
my $product = new Bugzilla::Product($values{product_id});
$values{product} = $product->name;
- $values{classification} = Bugzilla::Classification->new($product->classification_id)->name;
+ if (Bugzilla->params->{'useclassification'}) {
+ $values{classification} = Bugzilla::Classification->new($product->classification_id)->name;
+ }
my $component = new Bugzilla::Component($values{component_id});
$values{component} = $component->name;