procedure.service.nom instead of organisation if service exists

This commit is contained in:
Kara Diaby 2022-06-01 15:10:26 +02:00
parent e44a6ddeea
commit df2b4408c2

View file

@ -71,7 +71,7 @@ module Users
if procedure&.close?
flash.alert = procedure.service.presence ?
t('errors.messages.procedure_archived.with_service_and_phone_email', service_name: procedure.organisation, service_phone_number: procedure.service.telephone, service_email: procedure.service.email) :
t('errors.messages.procedure_archived.with_service_and_phone_email', service_name: procedure.service.nom, service_phone_number: procedure.service.telephone, service_email: procedure.service.email) :
t('errors.messages.procedure_archived.with_organisation_only', organisation_name: procedure.organisation)
else
flash.alert = t('errors.messages.procedure_not_found')