From: Frédéric Buclin Date: Fri, 19 Oct 2012 18:53:51 +0000 (+0200) Subject: Bug 803600: Clean up the comment generated when deleting attachments X-Git-Tag: bugzilla-4.4rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14444177930ad6d517d447f5dd7bda3ec4e27c31;p=thirdparty%2Fbugzilla.git Bug 803600: Clean up the comment generated when deleting attachments r=justdave a=LpSolit --- diff --git a/attachment.cgi b/attachment.cgi index e696c95a76..903fe5b596 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -762,7 +762,6 @@ sub delete_attachment { # The token is valid. Delete the content of the attachment. my $msg; $vars->{'attachment'} = $attachment; - $vars->{'date'} = $date; $vars->{'reason'} = clean_text($cgi->param('reason') || ''); $template->process("attachment/delete_reason.txt.tmpl", $vars, \$msg) diff --git a/template/en/default/attachment/delete_reason.txt.tmpl b/template/en/default/attachment/delete_reason.txt.tmpl index 7d45efec0c..16315550d0 100644 --- a/template/en/default/attachment/delete_reason.txt.tmpl +++ b/template/en/default/attachment/delete_reason.txt.tmpl @@ -9,17 +9,10 @@ [%# INTERFACE: # attachment: object of the attachment the user wants to delete. # reason: string; The reason provided by the user. - # date: the date when the request to delete the attachment was made. #%] -The content of attachment [% attachment.id %] has been deleted by - [%+ user.identity %] -[% IF reason %] -who provided the following reason: +The content of attachment [% attachment.id %] has been deleted +[%~ IF reason %] for the following reason: [%+ reason %] -[% ELSE %] -without providing any reason. [% END %] - -The token used to delete this attachment was generated at [% date FILTER time %].