From 6871e041a63bc506b2b5f0b4eec5ed9abab99c04 Mon Sep 17 00:00:00 2001 From: Jon Bendtsen Date: Thu, 21 May 2026 22:17:40 +0200 Subject: [PATCH] FIX #32086 Notifications for Interventions ignores the email template (#38366) When saving an email template using /admin/mails_templates.php and selecting interventions as the type of template, it inserted fichinter in the database. But when looking for templates it tried to find ficheinter - with an extra e. The result was that it did not find anything, and this did not use the template at all. Co-authored-by: Jon Bendtsen --- htdocs/core/class/notify.class.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php index 89bf13da263..88b85f4cbef 100644 --- a/htdocs/core/class/notify.class.php +++ b/htdocs/core/class/notify.class.php @@ -825,26 +825,26 @@ class Notify case 'FICHINTER_ADD_CONTACT': $link = ''.$newref.''; $dir_output = $conf->ficheinter->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $outputlangs->transnoentitiesnoconv("EMailTextInterventionAddedContact", $link); break; case 'FICHINTER_VALIDATE': $link = ''.$newref.''; $dir_output = $conf->ficheinter->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $outputlangs->transnoentitiesnoconv("EMailTextInterventionValidated", $link); break; case 'FICHINTER_MODIFY': $link = ''.$newref.''; $context_info = array_key_exists('signature', $object->context) ? $object->getLibSignedStatus() : ''; $dir_output = $conf->ficheinter->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $outputlangs->transnoentitiesnoconv("EMailTextInterventionModified", $link, $context_info); break; case 'FICHINTER_CLOSE': $link = ''.$newref.''; $dir_output = $conf->ficheinter->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $outputlangs->transnoentitiesnoconv("EMailTextInterventionClosed", $link); break; case 'ORDER_SUPPLIER_VALIDATE': @@ -1150,26 +1150,26 @@ class Notify case 'FICHINTER_ADD_CONTACT': $link = ''.$newref.''; $dir_output = $conf->ficheinter->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $langs->transnoentitiesnoconv("EMailTextInterventionAddedContact", $link); break; case 'FICHINTER_VALIDATE': $link = ''.$newref.''; $dir_output = $conf->facture->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $langs->transnoentitiesnoconv("EMailTextInterventionValidated", $link); break; case 'FICHINTER_MODIFY': $link = ''.$newref.''; $context_info = array_key_exists('signature', $object->context) ? $object->getLibSignedStatus() : ''; $dir_output = $conf->ficheinter->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $langs->transnoentitiesnoconv("EMailTextInterventionModified", $link, $context_info); break; case 'FICHINTER_CLOSE': $link = ''.$newref.''; $dir_output = $conf->facture->dir_output; - $object_type = 'ficheinter'; + $object_type = 'fichinter'; $mesg = $langs->transnoentitiesnoconv("EMailTextInterventionClosed", $link); break; case 'ORDER_SUPPLIER_CANCEL':