}
$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);
+ }
}
/**
<td>{$form.assignee_contact_id.html}
{edit}
<span class="description">{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}
<br />{ts}A copy of this activity will be emailed to each Assignee.{/ts}
{/if}
</span>
{edit}
<span class="description">
{ts}You can optionally assign this activity to someone.{/ts}
- {if $config->activityAssigneeNotification}
+ {if $activityAssigneeNotification}
<br />{ts}A copy of this activity will be emailed to each Assignee.{/ts}
{/if}
</span>