]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: fix error when bulk adding empty doc link custom fields (#10832)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 11 Sep 2025 20:19:23 +0000 (13:19 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 20:19:23 +0000 (13:19 -0700)
src/documents/bulk_edit.py

index 13c95ce6c84f25a0b3de052e3e5693985a1f8306..87c42a40c868e63e31621f5345f004ca12fcf9e1 100644 (file)
@@ -181,6 +181,7 @@ def modify_custom_fields(
                 defaults[value_field] = value
                 if (
                     custom_field.data_type == CustomField.FieldDataType.DOCUMENTLINK
+                    and value
                     and doc_id in value
                 ):
                     # Prevent self-linking