Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.3.5
-
Fix Version/s: 3.4.beta
-
Component/s: CiviContribute
-
Labels:None
Description
The problem is that the array populating the select form for contribution page id has the wrong keys due to an incorrect use of array_merge. I made my fix on a 3.2 version so I'm not including a patch. The relevant block of code in CRM/Contribute/Form/PCP/PCP.php roughly lines 140-146.
/*
$contribution_page = array_merge(
array( ts('- select -') ),
CRM_Contribute_PseudoConstant::contributionPage( ));
*/
$contribution_page = CRM_Contribute_PseudoConstant::contributionPage();
$contribution_page[0] = ts('- select -');
ksort($contribution_page);
The commented part is what it used to be, below is what it should be or something similar.