CRM-10466 - Ensure token hooks are always called
authorColeman Watts <coleman@civicrm.org>
Fri, 7 Feb 2014 01:14:23 +0000 (17:14 -0800)
committerColeman Watts <coleman@civicrm.org>
Fri, 7 Feb 2014 01:14:23 +0000 (17:14 -0800)
CRM/Activity/BAO/Activity.php

index 8cb0c29c5951a9ee84f1c55e658189eef4e2b5d2..a6694c30e34cf8b3d9e32cc92600de78364de6f0 100644 (file)
@@ -1245,7 +1245,7 @@ LEFT JOIN civicrm_activity_contact src ON (src.activity_id = ac.activity_id AND
 
     // get token details for contacts, call only if tokens are used
     $details = array();
-    if (!empty($allTokens)) {
+    if (!empty($returnProperties) || !empty($tokens) || !empty($allTokens)) {
       list($details) = CRM_Utils_Token::getTokenDetails(
         $contactIds,
         $returnProperties,