From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 6 Apr 2024 23:39:59 +0000 (-0700) Subject: Fix: Use correct custom field id when splitting (#6303) X-Git-Tag: v2.7.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5450bfb67b64811e47c4e4d3dd28ab19a5cfca71;p=thirdparty%2Fpaperless-ngx.git Fix: Use correct custom field id when splitting (#6303) --- diff --git a/src/documents/data_models.py b/src/documents/data_models.py index 22572709ff..b99c8511d8 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(