Fix: fixes for workflow assign custom field values (#13630)

This commit is contained in:
shamoon authored and GitHub committed 2026-08-10 07:38:07 -07:00
1 parent 62089df2d8
commit 855669ddf9
7 files changed
+75 -7

No files matched your search

+2 -1
View File
@@ -105,7 +105,8 @@ def apply_assignment_to_document(
field=field,
document=document,
).first()
if instance and args[value_field_name] is not None:
# empty string is indistinguishable from no value in the UI
if instance and args[value_field_name] not in (None, ""):
setattr(instance, value_field_name, args[value_field_name])
instance.save()
elif not instance: