X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FForm%2FActivity.php;h=3d202f1043f565a5423c93d9fc405290b59df495;hb=54744051dea726c2b1495f24fc1cf7ba7fa25e11;hp=cda6919576697c902f27a6883af1a6360e180aae;hpb=37cc330bb866c2efde4916963e7ce937fd7190c8;p=civicrm-core.git diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php index cda6919576..3d202f1043 100644 --- a/CRM/Case/Form/Activity.php +++ b/CRM/Case/Form/Activity.php @@ -97,12 +97,12 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { if (!$this->_caseId || (!$this->_activityId && !$this->_activityTypeId) ) { - CRM_Core_Error::fatal('required params missing.'); + CRM_Core_Error::statusBounce(ts('required params missing.')); } //check for case activity access. if (!CRM_Case_BAO_Case::accessCiviCase()) { - CRM_Core_Error::fatal(ts('You are not authorized to access this page.')); + CRM_Core_Error::statusBounce(ts('You are not authorized to access this page.')); } //validate case id. if ($this->_caseId && @@ -111,7 +111,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { $params = ['type' => 'any']; $allCases = CRM_Case_BAO_Case::getCases(TRUE, $params); if (count(array_intersect($this->_caseId, array_keys($allCases))) == 0) { - CRM_Core_Error::fatal(ts('You are not authorized to access this page.')); + CRM_Core_Error::statusBounce(ts('You are not authorized to access this page.')); } } @@ -123,7 +123,7 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity { $this->_activityTypeId ); if (!$valid) { - CRM_Core_Error::fatal(ts('You are not authorized to access this page.')); + CRM_Core_Error::statusBounce(ts('You are not authorized to access this page.')); } }