Skip to content

Commit

Permalink
Refs #41002, Improve array merging in pcp page.
Browse files Browse the repository at this point in the history
  • Loading branch information
apple843119 committed Jul 8, 2024
1 parent 686ccf1 commit 8ced65e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CRM/Contribute/Form/PCP/PCP.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ public function buildQuickForm() {
array('' => ts('- select -')),
CRM_Contribute_PseudoConstant::pcpstatus()
);
$contribution_page = array_merge(
array(ts('- select -')),
CRM_Contribute_PseudoConstant::contributionPage()
);
$contribution_page = array(ts('- select -')) + CRM_Contribute_PseudoConstant::contributionPage();
$dao = CRM_Core_DAO::executeQuery("SELECT p.contact_id, c.sort_name, c.external_identifier FROM civicrm_pcp p INNER JOIN civicrm_contact c ON p.contact_id = c.id GROUP BY p.contact_id");
$contacts = array(ts('- select -'));
while($dao->fetch()) {
Expand Down

0 comments on commit 8ced65e

Please sign in to comment.