Skip to content

Commit

Permalink
Merge pull request #56 from fuzionnz/deprecationfix
Browse files Browse the repository at this point in the history
Remove call to Deprecated function CRM_Core_Form::getLoggedInContactID
  • Loading branch information
Jitendra Purohit authored Nov 15, 2021
2 parents 30ce5ca + 8b66550 commit 114bda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transactional.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function transactional_civicrm_buildForm($formName, &$form) {

$contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $form);
if (empty($contactId)) {
$contactId = !empty($form->_contactID) ? $form->_contactID : $form->getLoggedInUserContactID();
$contactId = !empty($form->_contactID) ? $form->_contactID : CRM_Core_Session::getLoggedInContactID();
}
CRM_Mailing_Transactional::singleton()->setFormContact($contactId);
}
Expand Down

0 comments on commit 114bda3

Please sign in to comment.