diff --git a/migration/20.03/migrateContacts.php b/migration/20.03/migrateContacts.php index 2ed527c906fd656eef8ce9cc606ac5165cb5c6c8..d9c2560f27740d7e3d2a2bc33318c0065e6cc77f 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)