diff options
author | Reed Loden <reed@reedloden.com> | 2010-07-06 02:44:13 +0200 |
---|---|---|
committer | Reed Loden <reed@reedloden.com> | 2010-07-06 02:44:13 +0200 |
commit | 108eb83fae1e54f9746698246551e188dede26cb (patch) | |
tree | da7596c3a7b9f33d7762c9865c9cc198f4feede4 /Bugzilla/User.pm | |
parent | ba4585ae8a1c63a49e40461d2e2efc12bc75c58a (diff) | |
download | bugzilla-108eb83fae1e54f9746698246551e188dede26cb.tar.gz bugzilla-108eb83fae1e54f9746698246551e188dede26cb.tar.xz |
Bug 554964 - Show if a user is a "Default CC" under the Product Responsibilities section of editusers.cgi.
[r=mkanat a=mkanat]
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index cb3f75fa8..b9405e412 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1152,11 +1152,14 @@ sub product_responsibilities { return $self->{'product_resp'} if defined $self->{'product_resp'}; return [] unless $self->id; - my $list = $dbh->selectall_arrayref('SELECT product_id, id + my $list = $dbh->selectall_arrayref('SELECT components.product_id, components.id FROM components - WHERE initialowner = ? - OR initialqacontact = ?', - {Slice => {}}, ($self->id, $self->id)); + LEFT JOIN component_cc + ON components.id = component_cc.component_id + WHERE components.initialowner = ? + OR components.initialqacontact = ? + OR component_cc.user_id = ?', + {Slice => {}}, ($self->id, $self->id, $self->id)); unless ($list) { $self->{'product_resp'} = []; |