From 0edbaec6394684402b074ef06c8cf80e5d927b55 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 7 Mar 2014 14:16:11 -0500 Subject: [PATCH] CRM-14325 - adding participants to event from manage groups 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 --- CRM/Event/Form/Participant.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index daf8e42913..ab7db86f82 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -222,7 +222,10 @@ class CRM_Event_Form_Participant extends CRM_Contact_Form_Task { // 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 { -- 2.25.1