From a26bae24cbacf5e1c36c2d104f487f05cf7bd324 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Mon, 15 Sep 2014 02:35:26 +0200 Subject: [PATCH] Fix returning to a smart group search after adding an activity. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The previous fix for this did not include the civicrm/group/search url in the list of possible urls to return to; thus smart groups were still broken for this workflow. Signed-off-by: Toke Høiland-Jørgensen --- CRM/Activity/Form/Activity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index dd0c295321..e7349a4d3e 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -418,7 +418,8 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { if ($this->_compContext == 'advanced' ) { $urlString = 'civicrm/contact/search/advanced'; } - elseif ($path == 'civicrm/contact/search' + elseif ($path == 'civicrm/group/search' + || $path == 'civicrm/contact/search' || $path == 'civicrm/contact/search/advanced' || $path == 'civicrm/contact/search/custom') { $urlString = $path; -- 2.25.1