// you should log a ticket for it to be removed with details about the form you were on.
if (!empty($params['legacy_redirect_path'])) {
if (CRM_Utils_System::isDevelopment()) {
+ $intentionalENotice = "How did you get HERE?! - Please log in JIRA";
// here we could set a message telling devs to log it per above
}
CRM_Utils_System::redirect($params['legacy_redirect_path'], $params['legacy_redirect_query']);
'legacy_redirect_path' => 'civicrm/contact/view',
'legacy_redirect_query' => "reset=1&force=1&cid={$params['contact_id']}&selectedChild=member",
);
- throw new CRM_Core_Exception(ts('The membership cannot be saved because the status cannot be calculated.'), 0, $errorParams);
+ throw new CRM_Core_Exception(ts(
+ "The membership cannot be saved because the status cannot be calculated for start_date: $start_date end_date $end_date join_date $join_date as at " . date('Y-m-d H:i:s')),
+ 0,
+ $errorParams
+ );
}
$params['status_id'] = $calcStatus['id'];
}