Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: Typo invalidates precondition for doctype, resulting in Exception (#4668)

Armin Gruner1c4dfc3c6eaa
diff --git a/src/documents/consumer.py b/src/documents/consumer.py
index 1c37ce1a3..47dba9412 100644
--- a/src/documents/consumer.py
+++ b/src/documents/consumer.py
@@ -657,7 +657,7 @@ class Consumer(LoggingMixin):
)
doc_type_name = (
DocumentType.objects.get(pk=self.override_document_type_id).name
- if self.override_correspondent_id is not None
+ if self.override_document_type_id is not None
else None
)
owner_username = (