mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-12 18:00:45 +01:00
Fix ticket search, when there are multiple custom fields
This commit is contained in:
parent
6d538da0f0
commit
407c00addd
@ -197,7 +197,8 @@ def apply_query(queryset, params):
|
||||
Q(ticketcustomfieldvalue__value__icontains=search)
|
||||
)
|
||||
|
||||
queryset = queryset.filter(qset)
|
||||
# Distinct works, when there are multiple custom fields
|
||||
queryset = queryset.filter(qset).distinct()
|
||||
|
||||
sorting = params.get('sorting', None)
|
||||
if sorting:
|
||||
|
Loading…
Reference in New Issue
Block a user