diff --git a/app/models/permitted_params.rb b/app/models/permitted_params.rb index 653ae20cae..ad05eb5058 100644 --- a/app/models/permitted_params.rb +++ b/app/models/permitted_params.rb @@ -327,7 +327,7 @@ class PermittedParams :status, :sharing, :custom_field_value, - version_settings_attributes: [:id, :display, :project]) + version_settings_attributes: [:id, :display, :project_id]) end def comment diff --git a/spec/models/permitted_params_spec.rb b/spec/models/permitted_params_spec.rb index 3f60cda415..e55edf1ef4 100644 --- a/spec/models/permitted_params_spec.rb +++ b/spec/models/permitted_params_spec.rb @@ -254,7 +254,7 @@ describe PermittedParams, type: :model do acceptable_params_with_data.merge!(version_settings_attributes: {id: '1', display: '2', - project: '3'}) + project_id: '3'}) params = ActionController::Parameters.new(version: acceptable_params_with_data)