From df4da7f522da6b25492e8a554771815cc78f1463 Mon Sep 17 00:00:00 2001 From: chiachin Date: Mon, 15 Jul 2024 11:00:37 +0800 Subject: [PATCH] Revert "Refs #41002, Update handling of contribution page in pcp page." This reverts commit c31fbabaffc5906b4503638d2bfc5849bdca0697. --- CRM/Contribute/Form/PCP/PCP.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CRM/Contribute/Form/PCP/PCP.php b/CRM/Contribute/Form/PCP/PCP.php index 329ae1e84..250d26440 100644 --- a/CRM/Contribute/Form/PCP/PCP.php +++ b/CRM/Contribute/Form/PCP/PCP.php @@ -160,11 +160,7 @@ public function buildQuickForm() { array('' => ts('- select -')), CRM_Contribute_PseudoConstant::pcpstatus() ); - $contribution_page = array(ts('- select -')); - $additional_pages = CRM_Contribute_PseudoConstant::contributionPage(); - foreach ($additional_pages as $key => $value) { - $contribution_page[$key] = $value; - } + $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()) {