models: fix typo in comments

This commit is contained in:
Pierre de La Morinerie 2021-04-01 16:40:22 +02:00
parent 79d6ac18f0
commit fc4d8362dc

View file

@ -360,8 +360,8 @@ module Users
if champs_params[:dossier]
@dossier.assign_attributes(champs_params[:dossier])
# FIXME in some cases a removed repetition bloc row is submitted.
# In this case it will be trated as a new records and action will fail.
# FIXME: in some cases a removed repetition bloc row is submitted.
# In this case it will be treated as a new record, and the action will fail.
@dossier.champs.filter(&:repetition?).each do |champ|
champ.champs = champ.champs.filter(&:persisted?)
end