From b26634d776066be7e6e358bfff0bad4a25a27d51 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Sat, 8 Oct 2005 11:58:54 +0000 Subject: [PATCH] =?utf8?q?Bug=2028398=20Gotta=20be=20more=20careful=20when?= =?utf8?q?=20emailing=20state=20changes=20of=20dependent=20bugs=20Patch=20?= =?utf8?q?by=20Andr=C3=83=C2=83=C3=82=C2=A9=20Batosti=20=20r=3Dlpsolit,=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- process_bug.cgi | 6 +++--- template/en/default/bug/process/bugmail.html.tmpl | 12 ++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/process_bug.cgi b/process_bug.cgi index e98005a9cb..af3ebc9778 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1914,9 +1914,9 @@ foreach my $id (@idlist) { $vars->{'id'} = $k; $vars->{'type'} = "dep"; - # Let the user know we checked to see if we should email notice - # of this change to users with a relationship to the dependent - # bug and who did and didn't receive email about it. + # Let the user (if he is able to see the bug) know we checked to see + # if we should email notice of this change to users with a relationship + # to the dependent bug and who did and didn't receive email about it. $template->process("bug/process/results.html.tmpl", $vars) || ThrowTemplateError($template->error()); $vars->{'header_done'} = 1; diff --git a/template/en/default/bug/process/bugmail.html.tmpl b/template/en/default/bug/process/bugmail.html.tmpl index a2a6e7353e..a5d20e78dd 100644 --- a/template/en/default/bug/process/bugmail.html.tmpl +++ b/template/en/default/bug/process/bugmail.html.tmpl @@ -62,11 +62,15 @@ [% BLOCK emails %] [% description FILTER html %]: - [% IF names.size > 0 %] - [%+ FOREACH name = names %] - [% name FILTER html %][% ", " UNLESS loop.last() %] + [% IF user.can_see_bug(mailing_bugid) %] + [% IF names.size > 0 %] + [%+ FOREACH name = names %] + [% name FILTER html %][% ", " UNLESS loop.last() %] + [% END %] + [% ELSE %] + no one [% END %] [% ELSE %] - no one + (list of e-mails not avaliable) [% END %] [% END %] -- 2.47.2