From ef89f226e925c71f492cc49cb4811a6f069bced8 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Tue, 26 Mar 2013 18:36:49 +0530 Subject: [PATCH] worked on CRM-12216, fixed subject and added option for bulk action --- CRM/Activity/Form/Activity.php | 9 +++++---- templates/CRM/Activity/Form/Activity.tpl | 6 +++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index e47154efd4..bee06e27af 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -741,8 +741,8 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { $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', @@ -1143,13 +1143,14 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { } // 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 ) diff --git a/templates/CRM/Activity/Form/Activity.tpl b/templates/CRM/Activity/Form/Activity.tpl index ec16caf04c..5e2ae08ef0 100644 --- a/templates/CRM/Activity/Form/Activity.tpl +++ b/templates/CRM/Activity/Form/Activity.tpl @@ -127,7 +127,11 @@ {if $single eq false} {ts}With Contact(s){/ts} - {$with|escape} + + {$with|escape} +
+ {$form.is_multi_activity.html} {$form.is_multi_activity.label} + {elseif $action neq 4} {ts}With Contact{/ts} -- 2.25.1