Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
5c7a5ee4
Commit
5c7a5ee4
authored
Oct 19, 2012
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 803600: Clean up the comment generated when deleting attachments
r=justdave a=LpSolit
parent
64bd0e0e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
attachment.cgi
attachment.cgi
+0
-1
delete_reason.txt.tmpl
template/en/default/attachment/delete_reason.txt.tmpl
+2
-9
No files found.
attachment.cgi
View file @
5c7a5ee4
...
...
@@ -751,7 +751,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
)
...
...
template/en/default/attachment/delete_reason.txt.tmpl
View file @
5c7a5ee4
...
...
@@ -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 %].
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment