Skip to content

Commit

Permalink
Merge pull request #16019 from mattwire/contributionview_removecancelled
Browse files Browse the repository at this point in the history
Remove unused cancelledStatus assign on contributionView
  • Loading branch information
seamuslee001 authored Dec 3, 2019
2 parents a43ea4b + 16d332b commit 7232cf4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions CRM/Contribute/Form/ContributionView.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ public function preProcess() {
$this->assign('noACL', TRUE);
}
CRM_Contribute_BAO_Contribution::resolveDefaults($values);
// @todo - I believe this cancelledStatus is unused - if someone reaches the same conclusion
// by grepping then the next few lines can go.
$cancelledStatus = TRUE;
$status = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
if (CRM_Utils_Array::value('contribution_status_id', $values) == array_search('Cancelled', $status)) {
$cancelledStatus = FALSE;
}
$this->assign('cancelledStatus', $cancelledStatus);

if (!empty($values['contribution_page_id'])) {
$contribPages = CRM_Contribute_PseudoConstant::contributionPage(NULL, TRUE);
Expand Down

0 comments on commit 7232cf4

Please sign in to comment.