mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-03 00:15:46 +02: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
|
choices = self.choices_as_array
|
||||||
if self.empty_selection_list:
|
if self.empty_selection_list:
|
||||||
choices.insert(0, ('', '---------'))
|
choices.insert(0, ('', '---------'))
|
||||||
return choices
|
return choices
|
||||||
|
|
||||||
def build_api_field(self):
|
def build_api_field(self):
|
||||||
customfield_to_api_field_dict = {
|
customfield_to_api_field_dict = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user