diff --git a/app/controllers/users/dossiers_controller.rb b/app/controllers/users/dossiers_controller.rb index 921a06013d5..eedabdd8ac3 100644 --- a/app/controllers/users/dossiers_controller.rb +++ b/app/controllers/users/dossiers_controller.rb @@ -556,6 +556,10 @@ def update_dossier_and_compute_errors @dossier.update_champs_attributes(champs_public_attributes_params, :public) if @dossier.champs.any?(&:changed_for_autosave?) || @dossier.champs_public_all.any?(&:changed_for_autosave?) # TODO remove second condition after one deploy @dossier.last_champ_updated_at = Time.zone.now + + if @dossier.champs_public_all.filter(&:changed_for_autosave?).any?(&:used_by_routing_rules?) + RoutingEngine.compute(@dossier) + end end # We save the dossier without validating fields, and if it is successful and the client