mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-15 10:28:37 +01:00
Merge pull request #787 from mozggg/custom-fields-search-fix
Fix ticket search, when there are multiple custom fields
This commit is contained in:
commit
7c89285a7d
@ -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