Skip to content

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

Fix: Use correct custom field id when splitting (#6303)

shamoon5450bfb67b64
diff --git a/src/documents/data_models.py b/src/documents/data_models.py
index 22572709f..b99c8511d 100644
--- a/src/documents/data_models.py
+++ b/src/documents/data_models.py
@@ -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(