]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 317025: Deleting product throws error in default install (2.20 Windows) without...
authorwurblzap%gmail.com <>
Sat, 19 Nov 2005 08:48:08 +0000 (08:48 +0000)
committerwurblzap%gmail.com <>
Sat, 19 Nov 2005 08:48:08 +0000 (08:48 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>,
r=LpSolit, a=myk

template/en/default/admin/products/confirm-delete.html.tmpl

index 9358974de1f600adb0671aa170d9f780464f5e75..55fb49fb0951a72f8a86d3245d9847e719e915ea 100644 (file)
     </td>
   </tr>
 
-  <tr>
-    <td valign="top">
-      [% IF product.milestones.size > 0 %]
-        <a href="editmilestones.cgi?product=[%- product.name FILTER url_quote %]
-           [%- classification_url_part -%]">
+
+  [% IF Param('usetargetmilestone') %]
+    <tr>
+      <td valign="top">
+        [% IF product.milestones.size > 0 %]
+          <a href="editmilestones.cgi?product=[%- product.name FILTER url_quote %]
+             [%- classification_url_part -%]">
+            Milestones:
+          </a>
+        [% ELSE %]
           Milestones:
-        </a>
-      [% ELSE %]
-        Milestones:
-      [% END %]
-    </td>
-    <td>
-      [% IF product.milestones.size > 0 %]
-        [% FOREACH m = product.milestones %]
-          [% m.name FILTER html %]<br>
         [% END %]
-      [% ELSE %]
-        none
-      [% END %]
-    </td>
-  </tr>
+      </td>
+      <td>
+        [% IF product.milestones.size > 0 %]
+          [% FOREACH m = product.milestones %]
+            [% m.name FILTER html %]<br>
+          [% END %]
+        [% ELSE %]
+          none
+        [% END %]
+      </td>
+    </tr>
+  [% END %]
 
   <tr>
     <td>[% terms.Bugs %]:</td>