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

This commit is contained in:
shamoon
2025-09-11 13:19:23 -07:00
committed by GitHub
parent d3d8eef0b6
commit 44b8c4881a

View File

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