From 15332131ec101c917f1b6efc6c17d980fa4ecf9d Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Thu, 27 Jul 2023 21:08:06 -0600 Subject: [PATCH] Disable broken Also Include for event scheduled reminders --- templates/CRM/Admin/Form/ScheduleReminders.hlp | 2 +- templates/CRM/Admin/Form/ScheduleReminders.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Admin/Form/ScheduleReminders.hlp b/templates/CRM/Admin/Form/ScheduleReminders.hlp index 8294d980e3..172a58aaa0 100644 --- a/templates/CRM/Admin/Form/ScheduleReminders.hlp +++ b/templates/CRM/Admin/Form/ScheduleReminders.hlp @@ -19,7 +19,7 @@ {htxt id="limit_to"}

{ts}Select 'Limit to' if you want to only send reminders to contacts with the criteria selected above AND who ALSO match this criteria. If you select 'Choose Recipients' - only the chosen contacts will receive the reminder (AND only if they ALSO match the criteria above).{/ts}

-

{ts}Select 'Also include' if you want to also send reminders to contacts who match this criteria. If you select 'Choose Recipients' - the chosen contacts will also receive the reminder (in ADDITION TO the contacts who match the criteria above).{/ts}

+

{ts}Select 'Also include' if you want to also send reminders to contacts who match this criteria. If you select 'Choose Recipients' - the chosen contacts will also receive the reminder (in ADDITION TO the contacts who match the criteria above).{/ts} {ts}You can't also include contacts when the reminder is for an event.{/ts}

{/htxt} {htxt id="recipient"} diff --git a/templates/CRM/Admin/Form/ScheduleReminders.tpl b/templates/CRM/Admin/Form/ScheduleReminders.tpl index afde2b2897..ec8a9d2fe0 100644 --- a/templates/CRM/Admin/Form/ScheduleReminders.tpl +++ b/templates/CRM/Admin/Form/ScheduleReminders.tpl @@ -224,7 +224,7 @@ $('#limit_to', $form).toggle(!($('#entity_0', $form).val() == '1')); if ($('#entity_0', $form).val() != '1' || !($('#entity_0').length)) { // Some Event entity is selected. - if (['2', '3', '5'].includes($('#entity_0', $form).val())) { + if (['2', '3', '5'].includes($('#entity_0', $form).val()) || {/literal}'{$context}'{literal} === 'event') { $('#limit_to option[value="2"]', $form).attr('disabled','disabled').removeAttr('selected'); } else { -- 2.25.1