Skip to content

Commit

Permalink
CRM-16839 - Simpler status msg
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Jul 14, 2015
1 parent e303faa commit 7c77009
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions CRM/Case/Form/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)) {
Expand Down Expand Up @@ -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.") . '<br /><br />';
}
}

CRM_Core_Session::setStatus('', $recordStatus . ' ' . $followupStatus . ' ' . $mailStatus, 'info');
$title = ts("%1 Saved", array(1 => $this->_activityTypeName));
CRM_Core_Session::setStatus($followupStatus . $mailStatus, $title, 'info');
}
}

Expand Down

0 comments on commit 7c77009

Please sign in to comment.