Merge pull request #10347 from tchak/cleanup-dossier-user

fix(dossier): always use user_email_for instead of user.email
This commit is contained in:
Paul Chavard 2024-04-22 08:22:51 +00:00 committed by GitHub
commit 5788997519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View file

@ -28,7 +28,7 @@ class DossierTransfer < ApplicationRecord
DossierTransferLog.create(transfer.dossiers.map do |dossier|
{
dossier: dossier,
from: dossier.user.email,
from: dossier.user_email_for(:notification),
from_support: transfer.from_support,
to: transfer.email
}