summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-11-11 21:36:22 +0100
committermyk%mozilla.org <>2002-11-11 21:36:22 +0100
commitbe1bdf3972e95f617138f631e466875e7bd0b34c (patch)
treea492074d6c349d3cee371ca32276423d40e8d810 /Bugzilla/User.pm
parent4676125715f42c619bd34c69ac08daa3d3ace361 (diff)
downloadbugzilla-be1bdf3972e95f617138f631e466875e7bd0b34c.tar.gz
bugzilla-be1bdf3972e95f617138f631e466875e7bd0b34c.tar.xz
Fix for bug 179334: updates the setter consistently. also fixes numerous other bugs in the RT code.
r=bbaetz a=myk
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 3bc02c723..7cf05d935 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -234,10 +234,15 @@ sub match_field {
$expanded_fields->{$field_name} =
{ type => $fields->{$field_pattern}->{'type'} };
- # The field is a requestee field; in order for its name to show
- # up correctly on the confirmation page, we need to find out
- # the name of its flag type.
+ # The field is a requestee field; in order for its name
+ # 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);
+ $expanded_fields->{$field_name}->{'flag_type'} =
+ $flag->{'type'};
+ }
+ elsif ($field_name =~ /^requestee_type-(\d+)$/) {
$expanded_fields->{$field_name}->{'flag_type'} =
Bugzilla::FlagType::get($1);
}