diff options
author | lpsolit%gmail.com <> | 2006-07-14 18:42:12 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-07-14 18:42:12 +0200 |
commit | 8edadae9b3cc512c22fca344ffd56abf4e4f7318 (patch) | |
tree | 8dea24fbd6950c4a2ca14c1a7b6d39dd61f618e0 /Bugzilla/User.pm | |
parent | 05d2151a4e0c6fb54925b5f4e786101aa22927e2 (diff) | |
download | bugzilla-8edadae9b3cc512c22fca344ffd56abf4e4f7318.tar.gz bugzilla-8edadae9b3cc512c22fca344ffd56abf4e4f7318.tar.xz |
Bug 343432: Remove Bugzilla::Flag::get() and implement real flag objects - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |