Skip to content

Commit

Permalink
Merge pull request civicrm#11385 from jitendrapurohit/CRM-21530
Browse files Browse the repository at this point in the history
CRM-21530 - Call post hook after linking activity to the case
  • Loading branch information
colemanw authored and sluc23 committed Jan 10, 2018
2 parents fea91e3 + 7bc2604 commit 9c17bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Activity/Page/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,11 @@ public static function _convertToCaseActivity($params) {
$caseActivity->activity_id = $mainActivityId;
$caseActivity->save();
$error_msg = $caseActivity->_lastError;
$caseActivity->free();

$params['mainActivityId'] = $mainActivityId;
CRM_Activity_BAO_Activity::copyExtendedActivityData($params);
CRM_Utils_Hook::post('create', 'CaseActivity', $caseActivity->id, $caseActivity);
$caseActivity->free();

return (array('error_msg' => $error_msg, 'newId' => $mainActivity->id));
}
Expand Down

0 comments on commit 9c17bd0

Please sign in to comment.