amelioration(bulk_messages): ETQ instructeur, je peux envoyer un message aux usagers ayant un dossier en brouillon

This commit is contained in:
Martin 2023-07-13 17:58:11 +02:00 committed by mfo
parent 764f19d11a
commit 425d8867be
12 changed files with 145 additions and 111 deletions

View file

@ -541,6 +541,7 @@ module Users
def update_dossier_and_compute_errors
errors = []
@dossier.assign_attributes(champs_public_params)
if @dossier.champs_public_all.any?(&:changed_for_autosave?)
@dossier.last_champ_updated_at = Time.zone.now