If default search profile is set, you cannot reliably add participants
to an event when doing so from the manage group interface.
----------------------------------------
* CRM-14325: when default search profile is set, can't reliably add contacts to event from manage group page
http://issues.civicrm.org/jira/browse/CRM-14325
// check the current path, if search based, then dont get participantID
// CRM-5792
$path = CRM_Utils_System::currentPath();
- if (strpos($path, 'civicrm/contact/search') === 0) {
+ if (
+ strpos($path, 'civicrm/contact/search') === 0 ||
+ strpos($path, 'civicrm/group/search') === 0
+ ) {
$this->_id = NULL;
}
else {