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

+7
View File
@@ -3213,6 +3213,13 @@ class WorkflowActionSerializer(serializers.ModelSerializer[WorkflowAction]):
{"assign_title": f'Invalid f-string detected: "{e.args[0]}"'},
)
if attrs.get("assign_custom_fields_values"):
# Empty strings treated as None to avoid unexpected behavior
attrs["assign_custom_fields_values"] = {
field_id: (None if value == "" else value)
for field_id, value in attrs["assign_custom_fields_values"].items()
}
if (
"type" in attrs
and attrs["type"] == WorkflowAction.WorkflowActionType.EMAIL