Skip to content

Fix missing i18n for errors when using form objects instead of models

Vincent Agnano requested to merge fix-i18n-form-objects into master

Created by: n-b

fixes #1659 (closed)

In Admin::RdvFormConcern, we copy the errors from the Rdv object to the form object. Later in the form, the form object class is used to fetch the attribute human name.

Avant: old

Après: new

Avant: old2

Après: new2

Checklist avant review:

  • reparcourir le code rapidement pour voir les problèmes évidents (fichiers touchés inutilement, debug logs qui trainent…).
  • Tester la fonctionnalité sur la review app

Merge request reports