From fc4d8362dcfb493c5a3791305c8ea60a406b0f77 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Thu, 1 Apr 2021 16:40:22 +0200 Subject: [PATCH] models: fix typo in comments --- app/controllers/users/dossiers_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users/dossiers_controller.rb b/app/controllers/users/dossiers_controller.rb index f77eff7ab..40fbe0f03 100644 --- a/app/controllers/users/dossiers_controller.rb +++ b/app/controllers/users/dossiers_controller.rb @@ -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