]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 285541: QA Contacts No Longer Appear in show_bug
authormkanat%kerio.com <>
Thu, 10 Mar 2005 12:53:51 +0000 (12:53 +0000)
committermkanat%kerio.com <>
Thu, 10 Mar 2005 12:53:51 +0000 (12:53 +0000)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=justdave, a=justdave

Bugzilla/Bug.pm

index 3f278b72cde3c76468c3fdd3880b9bbdf3c687d7..2a4375081dabbc5dc40d23a88abdc781b0e74499 100755 (executable)
@@ -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");