CRM-18164 - Fix display of activities when recurring activity is present
authorJon goldberg <jon@palantetech.coop>
Sat, 5 Mar 2016 00:35:58 +0000 (19:35 -0500)
committerJon goldberg <jon@palantetech.coop>
Sat, 5 Mar 2016 00:41:15 +0000 (19:41 -0500)
CRM/Activity/BAO/Activity.php

index f5a5a0ac46b849a5e850e4071dd0d4b8f9379f03..9149a36ab7eaff00f08f41fb995f7d19c616ea9c 100644 (file)
@@ -2604,7 +2604,7 @@ INNER JOIN  civicrm_option_group grp ON ( grp.id = val.option_group_id AND grp.n
         );
 
         if ($values['is_recurring_activity']) {
-          $contactActivities[$activityId]['is_recurring_activity'] = CRM_Core_BAO_RecurringEntity::getPositionAndCount($values['activity_id'], 'civicrm_activity');
+          $activity['is_recurring_activity'] = CRM_Core_BAO_RecurringEntity::getPositionAndCount($values['activity_id'], 'civicrm_activity');
         }
 
         array_push($contactActivities, $activity);