Skip to content

Commit dddb034

Browse files
Copilotfbacall
andcommitted
Add legacy first_name/last_name to permitted params for API backwards compatibility
Co-authored-by: fbacall <[email protected]>
1 parent 044c720 commit dddb034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/materials_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def material_params
175175
{ scientific_topic_names: [] }, { scientific_topic_uris: [] },
176176
{ operation_names: [] }, { operation_uris: [] },
177177
{ node_ids: [] }, { node_names: [] }, { fields: [] },
178-
person_links_attributes: [:id, :role, :_destroy, person_attributes: %i[id given_name family_name full_name orcid]],
178+
person_links_attributes: [:id, :role, :_destroy, person_attributes: %i[id given_name family_name full_name first_name last_name orcid]],
179179
external_resources_attributes: %i[id url title _destroy],
180180
external_resources: %i[url title],
181181
event_ids: [], locked_fields: [])

0 commit comments

Comments
 (0)