forked from extern/django-helpdesk
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)
|
||||
)
|
||||
|
||||
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