From: Matthew Wire Date: Tue, 11 Jul 2017 10:00:57 +0000 (+0100) Subject: Replace fatal with statusBounce X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f513ea1e0a48b19228801218df0c192f4a1b9ea7;p=civicrm-core.git Replace fatal with statusBounce --- diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index cc5128156c..c147c14615 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -182,7 +182,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { $contributionID = CRM_Member_BAO_Membership::getMembershipContributionId($this->_id); // check delete permission for contribution if ($this->_id && $contributionID && !CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) { - CRM_Core_Error::fatal(ts("This Membership is linked to a contribution. You must have 'delete in CiviContribute' permission in order to delete this record.")); + CRM_Core_Error::statusBounce(ts("This Membership is linked to a contribution. You must have 'delete in CiviContribute' permission in order to delete this record.")); } }