diff options
author | lpsolit%gmail.com <> | 2007-07-21 15:59:23 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-07-21 15:59:23 +0000 |
commit | 1879703e14d3e19803997e5f5e746d25c78faf71 (patch) | |
tree | 91188ed12d93ee3dbbab3b3dd2842acf125b014a /userprefs.cgi | |
parent | Bug 365082: QuickSearch using unknown field makes Bugzilla hang - Patch by Te... (diff) | |
download | bugzilla-1879703e14d3e19803997e5f5e746d25c78faf71.tar.gz bugzilla-1879703e14d3e19803997e5f5e746d25c78faf71.tar.bz2 bugzilla-1879703e14d3e19803997e5f5e746d25c78faf71.zip |
Bug 365890: Searches shared by users with bless rights are in the footer by default, with no warning - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-x | userprefs.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/userprefs.cgi b/userprefs.cgi index 1ad7f906e..8f2e69f1e 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -399,6 +399,7 @@ sub DoSavedSearches { $vars->{'queryshare_groups'} = Bugzilla::Group->new_from_list($user->queryshare_groups); } + $vars->{'bless_group_ids'} = [map {$_->{'id'}} @{$user->bless_groups}]; } sub SaveSavedSearches { @@ -458,10 +459,9 @@ sub SaveSavedSearches { } # If we're sharing our query with a group we can bless, we - # subscribe direct group members to our search automatically. - # Otherwise, the group members need to opt in. This behaviour - # is deemed most likely to fit users' needs. - if ($user->can_bless($group_id)) { + # have the ability to add link to our search to the footer of + # direct group members automatically. + if ($user->can_bless($group_id) && $cgi->param('force_' . $q->id)) { my $group = new Bugzilla::Group($group_id); my $members = $group->members_non_inherited; foreach my $member (@$members) { |