diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php
index 4f60f56b7d4c..b528ea704c6a 100644
--- a/CRM/Case/Form/Activity.php
+++ b/CRM/Case/Form/Activity.php
@@ -430,9 +430,6 @@ public function postProcess($params = NULL) {
$params['parent_id'] = $parentId;
}
- // required for status msg
- $recordStatus = ts("The '%1' activity has been created.", array(1 => $this->_activityTypeName));
-
// store the dates with proper format
$params['activity_date_time'] = CRM_Utils_Date::processDate($params['activity_date_time'], $params['activity_date_time_time']);
$params['activity_type_id'] = $this->_activityTypeId;
@@ -500,9 +497,6 @@ public function postProcess($params = NULL) {
if (empty($params['target_contact_id']) && !empty($this->_defaults['target_contact'])) {
$newActParams['target_contact_id'] = $this->_defaults['target_contact'];
}
-
- // record status for status msg
- $recordStatus = ts("The '%1' activity has been updated.", array(1 => $this->_activityTypeName));
}
if (!isset($newActParams)) {
@@ -695,11 +689,11 @@ public function postProcess($params = NULL) {
'case_id' => $vval['case_id'],
);
CRM_Case_BAO_Case::processCaseActivity($caseParams);
- $followupStatus = ts("A followup activity has been scheduled.");
+ $followupStatus = ts("A followup activity has been scheduled.") . '
';
}
}
-
- CRM_Core_Session::setStatus('', $recordStatus . ' ' . $followupStatus . ' ' . $mailStatus, 'info');
+ $title = ts("%1 Saved", array(1 => $this->_activityTypeName));
+ CRM_Core_Session::setStatus($followupStatus . $mailStatus, $title, 'info');
}
}