$this->assign('surveyActivity', $this->_isSurveyActivity);
// this option should be available only during add mode
- if ($this->_action & CRM_Core_Action::ADD) {
- $this->add('advcheckbox', 'is_multi_activity', ts('Create a separate activity for each selected contact?'));
+ if ($this->_action != CRM_Core_Action::UPDATE) {
+ $this->add('advcheckbox', 'is_multi_activity', ts('Create a separate activity for each of the above selected contact.'));
}
$this->addRule('duration',
}
// set status message
+ $subject = '';
if (CRM_Utils_Array::value('subject', $params)) {
- $params['subject'] = "'" . $params['subject'] . "'";
+ $subject = "'" . $params['subject'] . "'";
}
CRM_Core_Session::setStatus(ts('Activity %1 has been saved. %2. %3',
array(
- 1 => $params['subject'],
+ 1 => $subject,
2 => $followupStatus,
3 => $mailStatus
)
<tr class="crm-activity-form-block-target_contact_id">
{if $single eq false}
<td class="label">{ts}With Contact(s){/ts}</td>
- <td class="view-value" style="white-space: normal">{$with|escape}</td>
+ <td class="view-value" style="white-space: normal">
+ {$with|escape}
+ <br/>
+ {$form.is_multi_activity.html} {$form.is_multi_activity.label}
+ </td>
{elseif $action neq 4}
<td class="label">{ts}With Contact{/ts}</td>
<td class="view-value">