Add related contacts to the group too, per prior version
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Jun 2022 05:47:22 +0000 (17:47 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Jun 2022 21:15:26 +0000 (09:15 +1200)
CRM/Contact/Import/Parser/Contact.php

index 53f0e868cd87ab3e62ade1d6fd9b4feac25a3bec..a0194c60888b77149f7a5b3f982fd2cd71ee420b 100644 (file)
@@ -208,7 +208,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
         $extraFields['related_contact_matched']++;
       }
     }
-    $this->setImportStatus($rowNumber, $this->getStatus(CRM_Import_Parser::VALID), $this->getSuccessMessage(), $contactID, $extraFields, [$contactID]);
+    $this->setImportStatus($rowNumber, $this->getStatus(CRM_Import_Parser::VALID), $this->getSuccessMessage(), $contactID, $extraFields, array_merge(array_keys($relatedContacts), [$contactID]));
     return CRM_Import_Parser::VALID;
   }