Wrap non grouped records in a list

This commit is contained in:
Sergio Morillo 2021-09-29 11:27:41 +02:00
parent e6381bd6f7
commit 4b1a62a1e1
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class ElectronicMailFilter(DeactivableMixin, ModelSQL, ModelView):
records = group_records(records)
if fltr.email:
# group all records, discard template 'to' grouping
records = [r for g in records for r in g]
records = [[r for g in records for r in g]]
for record in records:
if group_records: