aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Green <sgreen+mozilla@redhat.com>2012-01-11 21:12:02 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-01-11 21:12:02 +0100
commitad8500948cd54bfae85b6d6613f610eff4fbbfe5 (patch)
treead01a9813809609b4139cecb0484534637898c44
parent34c969c2144e5910e7532946d0a0313f48d31f01 (diff)
downloadbugs-ad8500948cd54bfae85b6d6613f610eff4fbbfe5.tar
bugs-ad8500948cd54bfae85b6d6613f610eff4fbbfe5.tar.gz
bugs-ad8500948cd54bfae85b6d6613f610eff4fbbfe5.tar.bz2
bugs-ad8500948cd54bfae85b6d6613f610eff4fbbfe5.tar.xz
bugs-ad8500948cd54bfae85b6d6613f610eff4fbbfe5.zip
Bug 717210: If all attachments are stored locally (maxattachmentsize = 0, maxlocalattachment > 0), the link to attach files to bugs is not displayed
r/a=LpSolit
-rw-r--r--template/en/default/attachment/list.html.tmpl4
-rw-r--r--template/en/default/bug/create/create.html.tmpl2
2 files changed, 3 insertions, 3 deletions
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl
index 4ad5e528a..fa8e4774e 100644
--- a/template/en/default/attachment/list.html.tmpl
+++ b/template/en/default/attachment/list.html.tmpl
@@ -19,7 +19,7 @@
# Frédéric Buclin <LpSolit@gmail.com>
#%]
-[% RETURN UNLESS attachments.size || Param("maxattachmentsize") %]
+[% RETURN UNLESS attachments.size || Param("maxattachmentsize") || Param("maxlocalattachment") %]
<script type="text/javascript">
<!--
@@ -160,7 +160,7 @@ function toggle_display(link) {
[% END %]
</span>
[% END %]
- [% IF Param("maxattachmentsize") %]
+ [% IF Param("maxattachmentsize") || Param("maxlocalattachment") %]
<a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Add an attachment</a>
(proposed patch, testcase, etc.)
[% END %]
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 616fab888..bdfe49087 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -587,7 +587,7 @@ TUI_hide_default('attachment_text_field');
</tr>
[% END %]
- [% IF Param("maxattachmentsize") %]
+ [% IF Param("maxattachmentsize") || Param("maxlocalattachment") %]
<tr>
<th>Attachment:</th>
<td colspan="3">