Skip to content

Commit 4009375

Browse files
Copilotfbacall
andcommitted
Add legacy first_name/last_name to permitted params for API backwards compatibility
Co-authored-by: fbacall <503373+fbacall@users.noreply.github.com>
1 parent 508211d commit 4009375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/materials_controller.rb

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

0 commit comments

Comments
 (0)