From 5701bf0229129ebbc794a97545c6afb8c02f70f1 Mon Sep 17 00:00:00 2001 From: Benbb96 Date: Mon, 11 Apr 2022 00:15:48 +0200 Subject: [PATCH] Fix a bug with get_choices function which doesn't return anything if empty_selection_list is False --- helpdesk/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 80aa3bae..cb3d4149 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -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 = {