]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 155031 - search by votes is shown even when votes are turned off.
authorbbaetz%student.usyd.edu.au <>
Wed, 10 Jul 2002 20:15:57 +0000 (20:15 +0000)
committerbbaetz%student.usyd.edu.au <>
Wed, 10 Jul 2002 20:15:57 +0000 (20:15 +0000)
r=jouni x2

template/en/default/search/form.html.tmpl

index b2821dc01742f5c0214910f20cc892fc61d85a51..4b6018b7a68bb11fa2761e300d9c822baacced46 100644 (file)
@@ -595,14 +595,16 @@ function selectProduct(f) {
     <td></td>
     <td>(comma-separated list)</td>
   </tr>
-  <tr>
-    <td align="right">
-      Only bugs with at least:
-    </td>
-    <td>
-      <input name="votes" size="3" value="[% default.votes.0 FILTER html %]"> votes
-    </td>
-  </tr>
+  [% IF Param('usevotes') %]
+    <tr>
+      <td align="right">
+        Only bugs with at least:
+      </td>
+      <td>
+        <input name="votes" size="3" value="[% default.votes.0 FILTER html %]"> votes
+      </td>
+    </tr>
+  [% END %]
 </table>