Unverified Commit d37341fd authored by bgm's avatar bgm Committed by GitHub

Merge pull request #15376 from mattwire/ts_membershippending

Use name instead of label to check contribution status
parents 8d75a92d ec834b84
......@@ -1554,7 +1554,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
// @todo Move this into CRM_Member_BAO_Membership::processMembership
if (!empty($membershipContribution)) {
$pending = ($membershipContribution->contribution_status_id == array_search('Pending', CRM_Contribute_PseudoConstant::contributionStatus())) ? TRUE : FALSE;
$pending = ($membershipContribution->contribution_status_id == CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Pending')) ? TRUE : FALSE;
}
else {
$pending = $this->getIsPending();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment