Commit 53a6fd98 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 285541: QA Contacts No Longer Appear in show_bug

Patch By Max Kanat-Alexander <mkanat@kerio.com> r=justdave, a=justdave
parent 37c937b9
......@@ -372,7 +372,7 @@ sub qa_contact () {
return $self->{'qa_contact'} if exists $self->{'qa_contact'};
if (Param('useqacontact') && $self->{'qa_contact_id'} > 0) {
$self->{'qa_contact'} = new Bugzilla::User($self->{'qa_contact'});
$self->{'qa_contact'} = new Bugzilla::User($self->{'qa_contact_id'});
} else {
# XXX - This is somewhat inconsistent with the assignee/reporter
# methods, which will return an empty User if they get a 0.
......@@ -512,7 +512,7 @@ sub user {
my $canedit = $unknown_privileges
|| Bugzilla->user->id == $self->{assigned_to_id}
|| (Param('useqacontact')
&& $self->qa_contact
&& $self->{'qa_contact_id'}
&& Bugzilla->user->id == $self->{qa_contact_id});
my $canconfirm = $unknown_privileges
|| Bugzilla->user->in_group("canconfirm");
......
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