]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: Typo invalidates precondition for doctype, resulting in Exception (#4668)
authorArmin Gruner <ag-github@muc.de>
Thu, 23 Nov 2023 19:19:11 +0000 (20:19 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2023 19:19:11 +0000 (11:19 -0800)
Co-authored-by: Armin Gruner <agmuc.de>
src/documents/consumer.py

index 1c37ce1a358ec6b4fafc3b21ebc22f37247c3617..47dba941250b7c0c7b116baa029ba7a2f36c3f30 100644 (file)
@@ -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 = (