foreach ($this->_priceSet['fields'] as $key => $val) {
foreach ($val['options'] as $keys => $values) {
$opMemTypeId = CRM_Utils_Array::value('membership_type_id', $values);
+ $priceFieldName = 'price_' . $values['price_field_id'];
$priceFieldValue = CRM_Price_BAO_PriceSet::getPriceFieldValueFromURL($this, $priceFieldName);
if (!empty($priceFieldValue)) {
CRM_Price_BAO_PriceSet::setDefaultPriceSetField($priceFieldName, $priceFieldValue, $val['html_type'], $this->_defaults);
$self->_useForMember
)
) {
- $lifeMember = CRM_Member_BAO_Membership::getAllContactMembership($self->_membershipContactID, FALSE, TRUE);
+ $isTest = ($self->_action & CRM_Core_Action::PREVIEW) ? TRUE : FALSE;
+ $lifeMember = CRM_Member_BAO_Membership::getAllContactMembership($self->_membershipContactID, $isTest, TRUE);
$membershipOrgDetails = CRM_Member_BAO_MembershipType::getMembershipTypeOrganization();
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->waitForElementPresent('contribution_pcp_made_through_id');
- $this->select2('pcp_made_through_id', $lastName . ', ' . $firstName);
+ $this->select2('contribution_pcp_made_through_id', $lastName . ', ' . $firstName);
$this->clickLink("_qf_Search_refresh", "xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[11]/span/a[1][text()='View']");
$this->click("xpath=//table[@class='selector row-highlight']/tbody/tr[1]/td[11]/span/a[1][text()='View']");
$this->_testDefaultSenarios("national_membership_{$title}-section", 1);
$this->contactInfoFill($firstName, $lastName, $email, $contactParams, $streetAddress);
- $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
+ $this->clickLink("_qf_Main_upload-bottom", "_qf_Main_upload-bottom");
$this->assertTrue($this->isTextPresent("You already have a lifetime membership and cannot select a membership with a shorter term."));
}