mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-02-02 19:39:14 +01:00
fixed custom field list without blank default
This commit is contained in:
parent
949179ec2e
commit
9aa32cc4f6
@ -196,8 +196,8 @@ class TicketForm(forms.Form):
|
||||
instanceargs['max_digits'] = field.max_length
|
||||
elif field.data_type == 'list':
|
||||
fieldclass = forms.ChoiceField
|
||||
choices = field.choices_as_array
|
||||
if field.empty_selection_list:
|
||||
choices = field.choices_as_array
|
||||
choices.insert(0, ('','---------' ) )
|
||||
instanceargs['choices'] = choices
|
||||
elif field.data_type == 'boolean':
|
||||
|
Loading…
Reference in New Issue
Block a user