From 20f965bb5f282561afd3fc89c0671be8f408f454 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 30 Jun 2015 17:25:15 -0400 Subject: [PATCH] CRM-11856 - Copy/paste the fix to copy/pasted code --- CRM/Event/Form/Task/SaveSearch.php | 4 +++ templates/CRM/Event/Form/Task/SaveSearch.tpl | 26 ++++++++++++-------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/CRM/Event/Form/Task/SaveSearch.php b/CRM/Event/Form/Task/SaveSearch.php index cd3886579e..0d7dfbe368 100644 --- a/CRM/Event/Form/Task/SaveSearch.php +++ b/CRM/Event/Form/Task/SaveSearch.php @@ -71,6 +71,9 @@ class CRM_Event_Form_Task_SaveSearch extends CRM_Event_Form_Task { $query = new CRM_Event_BAO_Query($this->get('formValues')); $qill = $query->qill(); + // Values from the search form + $formValues = $this->controller->exportValues(); + // need to save qill for the smarty template $this->assign('qill', $qill); @@ -94,6 +97,7 @@ class CRM_Event_Form_Task_SaveSearch extends CRM_Event_Form_Task { } else { $this->addDefaultButtons(ts('Save Smart Group')); + $this->assign('partiallySelected', $formValues['radio_ts'] != 'ts_all'); } $this->addRule('title', ts('Name already exists in Database.'), diff --git a/templates/CRM/Event/Form/Task/SaveSearch.tpl b/templates/CRM/Event/Form/Task/SaveSearch.tpl index 57d0d24bfb..8d09cf8771 100644 --- a/templates/CRM/Event/Form/Task/SaveSearch.tpl +++ b/templates/CRM/Event/Form/Task/SaveSearch.tpl @@ -27,16 +27,22 @@
{ts}Smart Group{/ts} -{if $qill[0]} -
-
    - {foreach from=$qill item=criteria} -
  • {$criteria}
  • - {/foreach} -
-
-
-{/if} +
+

{ts}This smart group will stay up-to-date with all contacts who meet the search criteria.{/ts}

+ {if !empty($partiallySelected)} +

{ts}NOTE: Contacts selected on the search results are not relevant here; all contacts that meet the following criteria will be in the group.{/ts}

+ {/if} + {if !empty($qill[0])} +
+
    + {foreach from=$qill[0] item=criteria} +
  • {$criteria}
  • + {/foreach} +
+
+ {/if} +

{docURL page='user/current/organising-your-data/smart-groups/'}

+
-- 2.25.1