aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-04-17 20:36:10 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-04-17 20:36:10 +0200
commit3b2fcf526e02c1d74f88b567083a9be371d5a607 (patch)
treed80418eb22797f179b47743127663e88338eadc7 /Bugzilla
parentb1779f28a5f15f7ad39855e07a27fcda19b8d3f1 (diff)
downloadbugs-3b2fcf526e02c1d74f88b567083a9be371d5a607.tar
bugs-3b2fcf526e02c1d74f88b567083a9be371d5a607.tar.gz
bugs-3b2fcf526e02c1d74f88b567083a9be371d5a607.tar.bz2
bugs-3b2fcf526e02c1d74f88b567083a9be371d5a607.tar.xz
bugs-3b2fcf526e02c1d74f88b567083a9be371d5a607.zip
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.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 6ab781767..e42952347 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -802,8 +802,8 @@ sub _param_array {
}
sub _params { $_[0]->{params} }
-
sub _user { return $_[0]->{user} }
+sub _sharer_id { $_[0]->{sharer} }
##############################
# Internal Accessors: SELECT #
@@ -2546,8 +2546,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';