Skip to content
Snippets Groups Projects
Commit e48353e9 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

only update :display_name on a Field if it's set.

parent d2b5fc90
Branches
Tags
No related merge requests found
......@@ -41,8 +41,8 @@
display_name NonEmptyString}
(write-check Field id)
(check-500 (m/mapply upd Field id (merge {:description description ; you're allowed to unset description and special_type
:special_type special_type
:display_name display_name} ; but field_type and preview_display must be replaced
:special_type special_type} ; but field_type and preview_display must be replaced
(when display_name {:display_name display_name})
(when field_type {:field_type field_type}) ; with new non-nil values
(when-not (nil? preview_display) {:preview_display preview_display}))))
(Field id))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment