From 822cfae93e8857b2ab20ec61a5061d15c2cb2735 Mon Sep 17 00:00:00 2001
From: Guillaume Heurtier <guillaume.heurtier@maarch.org>
Date: Thu, 8 Oct 2020 16:23:54 +0200
Subject: [PATCH] FEAT #15082 TIME 0:05 fix contact migration

---
 migration/20.03/migrateContacts.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/20.03/migrateContacts.php b/migration/20.03/migrateContacts.php
index 2ed527c906f..d9c2560f277 100644
--- a/migration/20.03/migrateContacts.php
+++ b/migration/20.03/migrateContacts.php
@@ -393,7 +393,7 @@ foreach ($customs as $custom) {
 
     // Res attach
     $query = "update res_attachments as ra set
-        recipient_id = tmp.old_address_id, recipient_type = 'contact'
+        recipient_id = tmp.new_id, recipient_type = 'contact'
     from (values
            $valuesOld
         ) as tmp(new_id, old_address_id, old_contact_id) 
-- 
GitLab