refactor: remove individual_id as authorized parameter
This commit is contained in:
parent
4b64e9f9a4
commit
b915fe13c3
2 changed files with 2 additions and 2 deletions
|
@ -590,7 +590,7 @@ module Users
|
|||
end
|
||||
|
||||
def dossier_params
|
||||
params.require(:dossier).permit(:for_tiers, :mandataire_first_name, :mandataire_last_name, individual_attributes: [:gender, :nom, :prenom, :birthdate, :email, :notification_method, :id])
|
||||
params.require(:dossier).permit(:for_tiers, :mandataire_first_name, :mandataire_last_name, individual_attributes: [:gender, :nom, :prenom, :birthdate, :email, :notification_method])
|
||||
end
|
||||
|
||||
def siret_params
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
.fr-fieldset__element.fr-fieldset__element--short-text
|
||||
= render Dsfr::InputComponent.new(form: f, attribute: :mandataire_last_name, opts: { "data-for-tiers-target" => "mandataireLastName" })
|
||||
|
||||
= f.fields_for :individual do |individual|
|
||||
= f.fields_for :individual, include_id: false do |individual|
|
||||
.individual-infos
|
||||
%fieldset.fr-fieldset
|
||||
%legend.fr-fieldset__legend--regular.fr-fieldset__legend{ "data-for-tiers-target" => "mandataireTitle" }
|
||||
|
|
Loading…
Add table
Reference in a new issue