mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
Fix a bug with get_choices function which doesn't return anything if empty_selection_list is False
This commit is contained in:
parent
dbcd0fe6b4
commit
5701bf0229
@ -1891,7 +1891,7 @@ class CustomField(models.Model):
|
||||
choices = self.choices_as_array
|
||||
if self.empty_selection_list:
|
||||
choices.insert(0, ('', '---------'))
|
||||
return choices
|
||||
return choices
|
||||
|
||||
def build_api_field(self):
|
||||
customfield_to_api_field_dict = {
|
||||
|
Loading…
Reference in New Issue
Block a user