From 7c77009f86e02b64fc3102cfe26e6d0f8054cabd Mon Sep 17 00:00:00 2001 From: colemanw Date: Tue, 14 Jul 2015 14:58:55 -0400 Subject: [PATCH] CRM-16839 - Simpler status msg --- CRM/Case/Form/Activity.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php index 4f60f56b7d..b528ea704c 100644 --- a/CRM/Case/Form/Activity.php +++ b/CRM/Case/Form/Activity.php @@ -430,9 +430,6 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { $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 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { 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 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { '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'); } } -- 2.25.1