}
else {
// for edit mode we need to allow our own record to be a dupe match!
- $exceptions = [$form->_session->get('userID')];
+ $exceptions = [CRM_Core_Session::singleton()->get('userID')];
}
$contactType = CRM_Core_BAO_UFGroup::getContactType($form->_gid);
// If all profile fields is of Contact Type then consider
}
}
- $this->_session = CRM_Core_Session::singleton();
- $this->_currentUserID = $this->_session->get('userID');
+ $this->_currentUserID = CRM_Core_Session::singleton()->get('userID');
if ($this->_mode == self::MODE_EDIT) {
//specifies the action being done on a multi record field
if (!$emailField) {
$status = ts("Email field should be included in profile if you want to use Group(s) when Profile double-opt in process is enabled.");
- $this->_session->setStatus($status);
+ CRM_Core_Session::singleton()->setStatus($status);
}
}
$contactDetails = CRM_Contact_BAO_Contact::getHierContactDetails($this->_id,
$greetingTypes
);
- $details = $contactDetails[0][$this->_id];
+ $details = $contactDetails[$this->_id];
}
if (!(!empty($details['addressee_id']) || !empty($details['email_greeting_id']) ||
CRM_Utils_Array::value('postal_greeting_id', $details)