[REF] Remove cruft
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Sep 2021 07:18:16 +0000 (19:18 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Sep 2021 07:18:16 +0000 (19:18 +1200)
As the comment says - it's weird. Also I found the related code has been removed

Civi/Token/TokenCompatSubscriber.php

index 9d745c14890829a1d62df951846604f9d4542a7e..3ebc0a09f9e1b26c19fedfc75598a7694f86fb3a 100644 (file)
@@ -113,12 +113,6 @@ class TokenCompatSubscriber implements EventSubscriberInterface {
         $contact = $row->context['contact'];
       }
 
-      if (!empty($row->context['tmpTokenParams'])) {
-        // merge activity tokens with contact array
-        // this is pretty weird.
-        $contact = array_merge($contact, $row->context['tmpTokenParams']);
-      }
-
       $contactArray = [$contactId => $contact];
       \CRM_Utils_Hook::tokenValues($contactArray,
         [$contactId],