Commit 8edadae9 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 343432: Remove Bugzilla::Flag::get() and implement real flag objects - Patch…

Bug 343432: Remove Bugzilla::Flag::get() and implement real flag objects - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
parent 05d2151a
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment