summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm6
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);
}