From 202409b6ef051db2b8243004ec711bbf7a9b8e79 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 5 Aug 2008 15:15:17 +0000 Subject: Bug 449184: Classification should not appear in new bugmail when useclassification = 0 - Patch by A.A. Shimono (himorin) r/a=LpSolit --- Bugzilla/BugMail.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla') 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; -- cgit v1.2.3-24-g4f1b