Merge pull request #6066 from tchak/fix-notifications
Try to fix orange badge hell
This commit is contained in:
commit
113dbe4969
1 changed files with 3 additions and 1 deletions
|
@ -172,7 +172,9 @@ module Instructeurs
|
||||||
|
|
||||||
if @commentaire.save
|
if @commentaire.save
|
||||||
@commentaire.dossier.update!(last_commentaire_updated_at: Time.zone.now)
|
@commentaire.dossier.update!(last_commentaire_updated_at: Time.zone.now)
|
||||||
current_instructeur.follow(dossier)
|
if !current_instructeur.follow?(dossier)
|
||||||
|
current_instructeur.follow(dossier)
|
||||||
|
end
|
||||||
flash.notice = "Message envoyé"
|
flash.notice = "Message envoyé"
|
||||||
redirect_to messagerie_instructeur_dossier_path(procedure, dossier)
|
redirect_to messagerie_instructeur_dossier_path(procedure, dossier)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue