]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: Use correct custom field id when splitting (#6303)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sat, 6 Apr 2024 23:39:59 +0000 (16:39 -0700)
committerGitHub <noreply@github.com>
Sat, 6 Apr 2024 23:39:59 +0000 (23:39 +0000)
src/documents/data_models.py

index 22572709ff3a7ed646d0570b2c97a02cdc8e7025..b99c8511d85510df9f4b7652fb21d9990166a4f5 100644 (file)
@@ -116,7 +116,7 @@ class DocumentMetadataOverrides:
             ).values_list("id", flat=True),
         )
         overrides.custom_field_ids = list(
-            doc.custom_fields.values_list("id", flat=True),
+            doc.custom_fields.values_list("field", flat=True),
         )
 
         groups_with_perms = get_groups_with_perms(