Replace fatal with statusBounce
authorMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 11 Jul 2017 10:00:57 +0000 (11:00 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 11 Jul 2017 10:00:57 +0000 (11:00 +0100)
CRM/Member/Form/Membership.php

index cc5128156cee93ba30d86439bfda792b032df829..c147c146159a3c6346d984f0bc63a803671bf5ab 100644 (file)
@@ -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."));
       }
     }