From b48d334866c0eb3658f653d5b910fca8016a8c90 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Fri, 27 Dec 2019 11:55:36 +0100
Subject: [PATCH] FEAT #12091 TIME 0:15 Migrate res_letterbox.contact fusion

---
 migration/19.12/migrateTemplates.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/migration/19.12/migrateTemplates.php b/migration/19.12/migrateTemplates.php
index a2c021ddf2a..2f193658d7f 100644
--- a/migration/19.12/migrateTemplates.php
+++ b/migration/19.12/migrateTemplates.php
@@ -11,9 +11,12 @@ include_once('../../vendor/tinybutstrong/opentbs/tbs_plugin_opentbs.php');
 const OFFICE_EXTENSIONS = ['odt', 'ods', 'odp', 'xlsx', 'pptx', 'docx', 'odf'];
 
 $DATA_TO_REPLACE = [
-    'res_letterbox.destination'   => '[destination.entity_id]',
-    'res_letterbox.entity_label'  => '[destination.entity_label]',
-    'res_letterbox.process_notes' => '[notes]',
+    'res_letterbox.destination'         => '[destination.entity_id]',
+    'res_letterbox.entity_label'        => '[destination.entity_label]',
+    'res_letterbox.process_notes'       => '[notes]',
+    'res_letterbox.contact_firstname'   => '[sender.firstname]',
+    'res_letterbox.contact_lastname'    => '[sender.lastname]',
+    'res_letterbox.contact_society'     => '[sender.company]',
 
     'res_letterbox.nature_id'                     => '[res_letterbox.custom_1]',
 
-- 
GitLab