Empêcher de choisir un reimport_field d’un mauvais layer
C’est déjà le cas côté backend, c’est justement l’erreur remontée; par contre, il semble que l’interface n’empêche pas cette sélection.
Sentry Issue: COCARTO-66
ActiveRecord::RecordInvalid: Validation failed: Configuration mappings reimport field is invalid (ActiveRecord::RecordInvalid)
app/controllers/import/operations_controller.rb:46:in `update'
@operation.update!(import_params)
app/controllers/application_controller.rb:48:in `rescue_unauthorized'
yield
app/controllers/application_controller.rb:44:in `set_sentry_user'
yield
app/controllers/application_controller.rb:33:in `restore_anonymous_session'
yield
app/controllers/application_controller.rb:26:in `switch_locale'
I18n.with_locale(locale, &action)
...
(106 additional frame(s) were not displayed)