]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 873920: Whine e-mails to other people includes invalid link
authorSimon Green <sgreen@redhat.com>
Mon, 20 May 2013 13:45:42 +0000 (15:45 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 20 May 2013 13:45:42 +0000 (15:45 +0200)
r/a=LpSolit

template/en/default/whine/mail.html.tmpl
template/en/default/whine/mail.txt.tmpl

index 72e7d8004638054d772096cd47f168bb71ff2f40..21784299e646862ae95b2eb573ff6139235de690 100644 (file)
       [% END %]
     </table>
 
-    <p align="left">
-    <a href="[% urlbase FILTER html %]buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% query.name FILTER uri %]">View as [% terms.bug %] list</a>
-    </p>
+    [% IF author.login == recipient.login %]
+      <p align="left">
+        <a href="[% urlbase FILTER html %]buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% query.name FILTER uri %]">View as [% terms.bug %] list</a>
+      </p>
+    [% END %]
   [% END %]
 [% ELSE %]
 
index ba1e95741758cf3c71f837f47aeecffe79768734..845869db401298d4125632a58eb80da16644e1b8 100644 (file)
 
   [% END %]
 
+  [% IF author.login == recipient.login %]
 View as [% terms.bug %] list: [% urlbase %]buglist.cgi?cmdtype=runnamed&namedcmd=[% query.name FILTER uri %]
   [% END %]
+  [% END %]
 [% ELSE %]
 
   No [% terms.bugs %] were found that matched the search criteria.