From 01dc0aff87c41ac338ab1c208ad6994e586d86e7 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 13 Aug 2013 15:12:07 +0530 Subject: [PATCH] fix pseudoconstant call reference to PCP form --- CRM/PCP/Page/PCP.php | 4 +--- tests/phpunit/WebTest/Event/PCPAddTest.php | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/PCP/Page/PCP.php b/CRM/PCP/Page/PCP.php index 41bb8ef183..24c4661dad 100644 --- a/CRM/PCP/Page/PCP.php +++ b/CRM/PCP/Page/PCP.php @@ -177,9 +177,7 @@ class CRM_PCP_Page_PCP extends CRM_Core_Page_Basic { } - $status = CRM_PCP_PseudoConstant::pcpstatus(); - $cpages = CRM_Contribute_PseudoConstant::contributionPage(); - $epages = CRM_Event_PseudoConstant::event(); + $status = CRM_PCP_BAO_PCP::buildOptions('status_id', 'create'); $pcpSummary = $params = array(); $whereClause = NULL; diff --git a/tests/phpunit/WebTest/Event/PCPAddTest.php b/tests/phpunit/WebTest/Event/PCPAddTest.php index 5c4299a708..0ec73c9b7d 100644 --- a/tests/phpunit/WebTest/Event/PCPAddTest.php +++ b/tests/phpunit/WebTest/Event/PCPAddTest.php @@ -251,6 +251,8 @@ class WebTest_Event_PCPAddTest extends CiviSeleniumTestCase { $registerUrl = "civicrm/event/register?id={$pageId}&reset=1"; $this->open($this->sboxPath . $registerUrl); + $this->type("first_name", "{$firstNameParticipants}"); + $this->type("last_name", "{$lastNameParticipants}"); $this->select("additional_participants", "value=" . $numberRegistrations); $this->type("email-Primary", $emailParticipants); $this->select("credit_card_type", "value=Visa"); -- 2.25.1