]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 717210: If all attachments are stored locally (maxattachmentsize = 0, maxlocalatt...
authorSimon Green <sgreen+mozilla@redhat.com>
Wed, 11 Jan 2012 20:13:42 +0000 (21:13 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 11 Jan 2012 20:13:42 +0000 (21:13 +0100)
r/a=LpSolit

template/en/default/attachment/list.html.tmpl
template/en/default/bug/create/create.html.tmpl

index 4ad5e528af1914bf57d80aab2696bff4ba987d52..fa8e4774e961388b2cfb5f3dcbb409cfcfc49ea4 100644 (file)
@@ -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 %]
index ee19ab5d656c82a266031714b4702b7d86187f08..3fdf564726fa55f3469c815be8b9b8e0f2f91424 100644 (file)
@@ -590,7 +590,7 @@ TUI_hide_default('attachment_text_field');
     </tr>
   [% END %]
 
-  [% IF Param("maxattachmentsize") %]
+  [% IF Param("maxattachmentsize") || Param("maxlocalattachment") %]
   <tr>
     <th>Attachment:</th>
     <td colspan="3">