From 6db7e20228e45507f80703b70102fdc05fec5b22 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Fri, 12 Apr 2013 13:07:50 -0400 Subject: [PATCH] CRM-12334 set assignee notification in smarty --- CRM/Activity/Form/Activity.php | 6 ++++++ templates/CRM/Activity/Form/Activity.tpl | 2 +- templates/CRM/Case/Form/Activity.tpl | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index d8f8a61da6..4134a50179 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -885,6 +885,12 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { } $this->addFormRule(array('CRM_Activity_Form_Activity', 'formRule'), $this); + + if ( CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, + 'activity_assignee_notification' ) + ) { + $this->assign('activityAssigneeNotification', true); + } } /** diff --git a/templates/CRM/Activity/Form/Activity.tpl b/templates/CRM/Activity/Form/Activity.tpl index 31f3445c65..e5f74493ab 100644 --- a/templates/CRM/Activity/Form/Activity.tpl +++ b/templates/CRM/Activity/Form/Activity.tpl @@ -163,7 +163,7 @@ {$form.assignee_contact_id.html} {edit} {ts}You can optionally assign this activity to someone. Assigned activities will appear in their Activities listing at CiviCRM Home.{/ts} - {if $config->activityAssigneeNotification} + {if $activityAssigneeNotification}
{ts}A copy of this activity will be emailed to each Assignee.{/ts} {/if}
diff --git a/templates/CRM/Case/Form/Activity.tpl b/templates/CRM/Case/Form/Activity.tpl index ba6d3e278d..8ec7d73b21 100644 --- a/templates/CRM/Case/Form/Activity.tpl +++ b/templates/CRM/Case/Form/Activity.tpl @@ -147,7 +147,7 @@ {edit} {ts}You can optionally assign this activity to someone.{/ts} - {if $config->activityAssigneeNotification} + {if $activityAssigneeNotification}
{ts}A copy of this activity will be emailed to each Assignee.{/ts} {/if}
-- 2.25.1