mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-07-14 21:15:28 +02:00
fix KBItem choose form
This commit is contained in:
@ -184,7 +184,7 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form):
|
|||||||
widget=forms.Select(attrs={'class': 'form-control'}),
|
widget=forms.Select(attrs={'class': 'form-control'}),
|
||||||
required=False,
|
required=False,
|
||||||
label=_('Knowledge Base Item'),
|
label=_('Knowledge Base Item'),
|
||||||
choices=[(kbi.pk, kbi.title) for kbi in KBItem.objects.filter(category=kbcategory.pk)],
|
choices=[(kbi.pk, kbi.title) for kbi in KBItem.objects.filter(category=kbcategory.pk, enabled=True)],
|
||||||
)
|
)
|
||||||
|
|
||||||
def _add_form_custom_fields(self, staff_only_filter=None):
|
def _add_form_custom_fields(self, staff_only_filter=None):
|
||||||
|
Reference in New Issue
Block a user