Commit ad850094 authored by Simon Green's avatar Simon Green Committed by Frédéric Buclin

Bug 717210: If all attachments are stored locally (maxattachmentsize = 0,…

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
parent 34c969c2
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# Frédéric Buclin <LpSolit@gmail.com> # 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"> <script type="text/javascript">
<!-- <!--
...@@ -160,7 +160,7 @@ function toggle_display(link) { ...@@ -160,7 +160,7 @@ function toggle_display(link) {
[% END %] [% END %]
</span> </span>
[% END %] [% END %]
[% IF Param("maxattachmentsize") %] [% IF Param("maxattachmentsize") || Param("maxlocalattachment") %]
<a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Add an attachment</a> <a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Add an attachment</a>
(proposed patch, testcase, etc.) (proposed patch, testcase, etc.)
[% END %] [% END %]
......
...@@ -587,7 +587,7 @@ TUI_hide_default('attachment_text_field'); ...@@ -587,7 +587,7 @@ TUI_hide_default('attachment_text_field');
</tr> </tr>
[% END %] [% END %]
[% IF Param("maxattachmentsize") %] [% IF Param("maxattachmentsize") || Param("maxlocalattachment") %]
<tr> <tr>
<th>Attachment:</th> <th>Attachment:</th>
<td colspan="3"> <td colspan="3">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment