--- a/ForgeTracker/forgetracker/templates/ticket.html
+++ b/ForgeTracker/forgetracker/templates/ticket.html
@@ -117,8 +117,12 @@
<input py:if="field.type == 'boolean' and ticket.custom_fields.get(field.name, '') != 'True'"
name="custom_fields.${field.name}" type="checkbox" value="True"/>
<select py:if="field.type == 'select'" name="custom_fields.${field.name}">
- <option py:for="option in field.options.split()" value="${option}"
- selected="${'selected' if ticket.custom_fields.get(field.name, '')==option else None}">${option}</option>
+ <py:for each="option in field.options.split()">
+ <option py:if="not option.startswith('*')" value="${option}"
+ selected="${'selected' if ticket.custom_fields.get(field.name, '')==option else None}">${option}</option>
+ <option py:if="option.startswith('*')" value="${option[1:]}"
+ selected="${'selected' if ticket.custom_fields.get(field.name, '')==option[1:] or ticket.custom_fields.get(field.name, '')==None else None}">${option[1:]}</option>
+ </py:for>
</select>
</span>
</span>