mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 01:13:31 +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)
|
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)
|
sorting = params.get('sorting', None)
|
||||||
if sorting:
|
if sorting:
|
||||||
|
Loading…
Reference in New Issue
Block a user