Skip to content

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

Fix: fix error when bulk adding empty doc link custom fields (#10832)

shamoon44b8c4881a41
diff --git a/src/documents/bulk_edit.py b/src/documents/bulk_edit.py
index 13c95ce6c..87c42a40c 100644
--- a/src/documents/bulk_edit.py
+++ b/src/documents/bulk_edit.py
@@ -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