diff --git a/ckanext/odsh/templates/macros/form.html b/ckanext/odsh/templates/macros/form.html index c69c12d998b587865cd4fdc0bbf8a111b40b7606..610a9b69ef2ccdb00973f4c2c8f4f6f80b5ed1ed 100644 --- a/ckanext/odsh/templates/macros/form.html +++ b/ckanext/odsh/templates/macros/form.html @@ -176,11 +176,9 @@ is_required=false) %} <select id="{{ (id or name) }}" name="{{ name }}" {{ attributes(attrs) }} data-module="autocomplete"{% if is_multiple %} multiple{% endif %}> {% for option in options %} - {% if option.key %} - <option value="{{ option.key }}"{% if option.key in selected %} selected="selected"{% endif %}> - {{ option.text or option.value }} - </option> - {% endif %} + <option value="{{ option.key or '' }}"{% if option.key in selected %} selected="selected"{% endif %}> + {{ option.text or option.value }} + </option> {% endfor %} </select> </div>