From 8edadae9b3cc512c22fca344ffd56abf4e4f7318 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 14 Jul 2006 16:42:12 +0000 Subject: Bug 343432: Remove Bugzilla::Flag::get() and implement real flag objects - Patch by Frédéric Buclin r/a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/User.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index e962ae7ae..67ada8e29 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -978,11 +978,13 @@ sub match_field { # to show up correctly on the confirmation page, we need # to find out the name of its flag type. if ($field_name =~ /^requestee-(\d+)$/) { - my $flag = Bugzilla::Flag::get($1); + require Bugzilla::Flag; + my $flag = new Bugzilla::Flag($1); $expanded_fields->{$field_name}->{'flag_type'} = - $flag->{'type'}; + $flag->type; } elsif ($field_name =~ /^requestee_type-(\d+)$/) { + require Bugzilla::FlagType; $expanded_fields->{$field_name}->{'flag_type'} = Bugzilla::FlagType::get($1); } -- cgit v1.2.3-24-g4f1b