fix for api key (#950)

This commit is contained in:
steschuser 2021-10-30 21:19:49 +02:00 committed by GitHub
parent b7197948c1
commit 1f34dbf810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@
<select multiple="multiple" class="form-control" id="key_multi_domain"
name="key_multi_domain">
{% for domain in domains %}
<option {% if domain in key.domains %}selected{% endif %} value="{{ domain.name }}">{{ domain.name }}</option>
<option {% if key and domain in key.domains %}selected{% endif %} value="{{ domain.name }}">{{ domain.name }}</option>
{% endfor %}
</select>
</div>
@ -165,4 +165,4 @@
</div>
<!-- /.modal-dialog -->
</div>
{% endblock %}
{% endblock %}