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
702d4301
Commit
702d4301
authored
Apr 19, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 560215: maxattachmentsize = 0 means that you cannot attach any file to bugs
r=mkanat a=LpSolit
parent
d26192f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
attachment.html.tmpl
template/en/default/admin/params/attachment.html.tmpl
+2
-3
list.html.tmpl
template/en/default/attachment/list.html.tmpl
+6
-2
create.html.tmpl
template/en/default/bug/create/create.html.tmpl
+2
-0
No files found.
template/en/default/admin/params/attachment.html.tmpl
View file @
702d4301
...
...
@@ -66,9 +66,8 @@
maxattachmentsize => "The maximum size (in kilobytes) of attachments. " _
"$terms.Bugzilla will not accept attachments greater than this number " _
"of kilobytes in size. To accept attachments of any size " _
"(subject to the limitations of your server software), set this " _
"value to zero.",
"of kilobytes in size. Setting this parameter to 0 will prevent " _
"attaching files to ${terms.bugs}.",
maxlocalattachment => "The maximum size (in megabytes) of attachments identified by " _
"the user as 'Big Files' to be stored locally on the webserver. " _
...
...
template/en/default/attachment/list.html.tmpl
View file @
702d4301
...
...
@@ -19,6 +19,8 @@
# Frédéric Buclin <LpSolit@gmail.com>
#%]
[% RETURN UNLESS attachments.size || Param("maxattachmentsize") %]
<script type="text/javascript">
<!--
function toggle_display(link) {
...
...
@@ -155,8 +157,10 @@ function toggle_display(link) {
[% END %]
</span>
[% END %]
<a href="attachment.cgi?bugid=[% bugid %]&action=enter">Add an attachment</a>
(proposed patch, testcase, etc.)
[% IF Param("maxattachmentsize") %]
<a href="attachment.cgi?bugid=[% bugid %]&action=enter">Add an attachment</a>
(proposed patch, testcase, etc.)
[% END %]
</td>
</tr>
</table>
...
...
template/en/default/bug/create/create.html.tmpl
View file @
702d4301
...
...
@@ -548,6 +548,7 @@ TUI_hide_default('expert_fields');
</tr>
[% END %]
[% IF Param("maxattachmentsize") %]
<tr>
<th>Attachment:</th>
<td colspan="3">
...
...
@@ -582,6 +583,7 @@ TUI_hide_default('expert_fields');
</script>
</td>
</tr>
[% END %]
</tbody>
<tbody class="expert_fields">
...
...
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