Skip to content

Commit

Permalink
Merge pull request #16353 from pradpnayak/functionFix
Browse files Browse the repository at this point in the history
Wrong parameter passed to executeQuery function
  • Loading branch information
eileenmcnaughton authored Jan 23, 2020
2 parents eeda8cb + e81fd94 commit 864483f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CRM/Activity/BAO/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,10 @@ public static function getActivities($params) {

// fetch case subject for case ID found
if (!empty($activity['case_id'])) {
$activities[$id]['case_subject'] = CRM_Core_DAO::executeQuery('CRM_Case_DAO_Case', $activity['case_id'], 'subject');
$activities[$id]['case_subject'] = civicrm_api3('Case', 'getvalue', [
'return' => 'subject',
'id' => reset($activity['case_id']),
]);
}
}
else {
Expand Down

0 comments on commit 864483f

Please sign in to comment.