From 4587cba89586ff3e00ed863748857ecf56a41532 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 14 Oct 2005 06:42:32 +0000 Subject: Bug 306601: Bugzilla::Classification needs a products() method - Patch by André Batosti r=LpSolit a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/User.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index a20f2e338..85584d70c 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -42,6 +42,7 @@ use Bugzilla::Util; use Bugzilla::Constants; use Bugzilla::User::Setting; use Bugzilla::Product; +use Bugzilla::Classification; use base qw(Exporter); @Bugzilla::User::EXPORT = qw(insert_new_user is_available_username @@ -469,7 +470,8 @@ sub get_selectable_classifications { my $class; foreach my $product (@$products) { - $class->{$product->classification_id} ||= $product->classification; + $class->{$product->classification_id} ||= + new Bugzilla::Classification($product->classification_id); } my @sorted_class = sort {lc($a->name) cmp lc($b->name)} (values %$class); $self->{selectable_classifications} = \@sorted_class; -- cgit v1.2.3-24-g4f1b