Skip to content

Commit

Permalink
fix KBItem choose form
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Feb 27, 2020
1 parent 29e7315 commit 81f835b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpdesk/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __init__(self, kbcategory=None, *args, **kwargs):
widget=forms.Select(attrs={'class': 'form-control'}),
required=False,
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):
Expand Down

0 comments on commit 81f835b

Please sign in to comment.