Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: None
-
Fix Version/s: 1.7
-
Component/s: None
-
Labels:None
Description
Trying to delete a contribution page which has NO contributions (path=civicrm/admin/contribute?action=delete&reset=1&id=x)
Currently the "error" below appears (it should only be displayed if there ARE contribs for this page).
Looking at the tpl (templates/CRM/Contribute/Form/ContributionPage/Delete.tpl) - this msg is presented ALWAYS. There should be a conditional passed to the tpl to either give the usual warning ("Are you sure...") OR give the error below IF that case is true. Also, when error below is displayed we should NOT show the "Delete Contribution Page" button – only the Cancel button. Pls test BOTH cases after fixing.
— msg displayed from tpl ----
You cannot delete this Contribution Page because it has already been used to submit a contribution or membership payment. It is recommended that your disable the page instead of deleting it, to preserve the integrity of your contribution records. If you do want to completely delete this contribution page, you first need to search for and delete all of the contribution transactions associated with this page in CiviContribute.