diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-04-17 20:41:05 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-04-17 20:41:05 +0200 |
commit | 1d125667d33ac6542562be663930d72eec8e03b7 (patch) | |
tree | beeb82428447dbd2309b9f21fc659ed2be48adfd /Bugzilla | |
parent | d8d3bd333243ebc01630b576a406c6b78725e0bf (diff) | |
download | bugzilla-1d125667d33ac6542562be663930d72eec8e03b7.tar.gz bugzilla-1d125667d33ac6542562be663930d72eec8e03b7.tar.xz |
Bug 745320: Shared queries do not work when tags are part of the query
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 2ea4b1ae1..1097b32dd 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -792,8 +792,8 @@ sub _param_array { } sub _params { $_[0]->{params} } - sub _user { return $_[0]->{user} } +sub _sharer_id { $_[0]->{sharer} } ############################## # Internal Accessors: SELECT # @@ -2567,8 +2567,8 @@ sub _multiselect_table { } elsif ($field eq 'tag') { $args->{full_field} = 'tag.name'; - return "bug_tag INNER JOIN tag ON bug_tag.tag_id = tag.id" - . " AND user_id = " . $self->_user->id; + return "bug_tag INNER JOIN tag ON bug_tag.tag_id = tag.id AND user_id = " + . ($self->_sharer_id || $self->_user->id); } elsif ($field eq 'bug_group') { $args->{full_field} = 'groups.name'; |