Fix #1575 : Allow stemmed search only if stemming is enabled

This commit is contained in:
Romain Neutron
2013-11-07 12:12:26 +01:00
parent 973e9f7907
commit cfa726f2ee

View File

@@ -343,10 +343,10 @@
<option value="{{ ord }}">{{ ord_name }}</option>
{% endfor %}
</select>
{% if app['phraseanet.SE'].hasStemming() %}
{% if app['phraseanet.SE'].hasStemming() and app['phraseanet.SE'].isStemmingEnabled() %}
<div>
<label class="checkbox">
<input type="checkbox" {% if app['phraseanet.SE'].isStemmingEnabled() %} checked="checked" {% endif %} name="stemme" /> {% trans 'rechercher par stemme' %}
<input type="checkbox" checked="checked" name="stemme" /> {% trans 'rechercher par stemme' %}
</label>
</div>
{% endif %}