From: Brian Shaughnessy Date: Fri, 12 Apr 2013 17:07:50 +0000 (-0400) Subject: CRM-12334 set assignee notification in smarty X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6db7e20228e45507f80703b70102fdc05fec5b22;p=civicrm-core.git CRM-12334 set assignee notification in smarty --- 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}