From: mkanat%kerio.com <> Date: Thu, 10 Mar 2005 12:53:51 +0000 (+0000) Subject: Bug 285541: QA Contacts No Longer Appear in show_bug X-Git-Tag: bugzilla-2.19.3~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a6fd9871b67ccd28fd9c9f8a740659afd2759d;p=thirdparty%2Fbugzilla.git Bug 285541: QA Contacts No Longer Appear in show_bug Patch By Max Kanat-Alexander r=justdave, a=justdave --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3f278b72cd..2a4375081d 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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");