From: lpsolit%gmail.com <> Date: Tue, 5 Aug 2008 15:16:51 +0000 (+0000) Subject: Bug 449184: Classification should not appear in new bugmail when useclassification... X-Git-Tag: bugzilla-3.2rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e06b3c35fd6208e768dbf90b1dd70e04274947;p=thirdparty%2Fbugzilla.git Bug 449184: Classification should not appear in new bugmail when useclassification = 0 - Patch by A.A. Shimono (himorin) r/a=LpSolit --- diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 2f132e2dea..dc48e83ded 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;