Commits

Anonymous committed 4a4db5f

#262: Ignore attachments content while searching. Also add a checkbox to enable/disable the option in the search page. Original patch by Daniel Diniz.

Comments (0)

Files changed (2)

html/issue.search.html

   <td>&nbsp;</td>
 </tr>
 
+<tr tal:define="name string:ignore">
+  <th i18n:translate="">Ignore attachments:</th>
+  <td><input type="checkbox" checked="checked"
+             name="ignore" id="ignore" value="file:content"/></td>
+  <td>&nbsp;</td>
+  <td>&nbsp;</td>
+  <td>&nbsp;</td>
+</tr>
+
 <tr tal:define="name string:title">
   <th i18n:translate="">Title:</th>
   <td metal:use-macro="search_input"></td>
        <input type="hidden" name="@sort" value="-activity" />
        <input type="hidden" name="@filter" value="status"/>
        <input type="hidden" name="@action" value="searchid"/>
+       <input type="hidden" name="ignore" value="file:content"/>
        <input tal:attributes="value python:request.form.getvalue('@search_text') or nothing;"
               class="input-text" id="search-text" name="@search_text" size="10" />
        <input type="submit" id="submit" value="search" name="submit"