Use "No Subject" fallback when creating document incoming from email with empty subject

Closes #13606
This commit is contained in:
Cédric Krier
2024-10-19 15:25:33 +02:00
parent afb909aa41
commit 48cf2814ea
+1 -1
View File
@@ -188,7 +188,7 @@ class Incoming(DeactivableMixin, Workflow, ModelSQL, ModelView):
data = data.encode()
document = cls(
active=active,
name=message.get('subject', 'No Subject'),
name=message.get('subject') or 'No Subject',
company=rule.document_incoming_company,
data=data,
type=rule.document_incoming_type if active else None,