Skip to content

Commit

Permalink
Merge pull request #14491 from pradpnayak/ActivityPre
Browse files Browse the repository at this point in the history
Object id is always NULL in ore hook in update activity mode
  • Loading branch information
eileenmcnaughton authored Jun 11, 2019
2 parents 6886f35 + 778497a commit 87408bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Activity/BAO/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public static function create(&$params) {

// CRM-9137
if (!empty($params['id'])) {
CRM_Utils_Hook::pre('edit', 'Activity', $activity->id, $params);
CRM_Utils_Hook::pre('edit', 'Activity', $params['id'], $params);
}
else {
CRM_Utils_Hook::pre('create', 'Activity', NULL, $params);
Expand Down Expand Up @@ -751,8 +751,8 @@ public static function getActivities($params) {
GROUP BY activity_id', [
1 => [
CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_ActivityContact', 'record_type_id', 'Activity Targets'),
'Integer'
]
'Integer',
],
])->fetchAll();
}
foreach ($targetCount as $activityTarget) {
Expand Down

0 comments on commit 87408bd

Please sign in to comment.