From 5c2804968ae2e95e4d33f24ee1379df64fcb647b Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Sat, 13 Apr 2013 11:39:51 -0700 Subject: [PATCH] CRM-8963 - fix a few more PHP 5.4 warnings ---------------------------------------- * CRM-8963: Batch update profile: states do not change with country http://issues.civicrm.org/jira/browse/CRM-8963 --- CRM/Event/Form/Registration/Confirm.php | 6 +++--- CRM/Event/Form/Registration/Register.php | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 63a8cd96db..5377d8c0c6 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -351,7 +351,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $formattedValues[$count][$prefix1 . 'CustomPostGroupTitle'] = $groupName; } $count++; - } + } $this->_fields = $profileFields; } if (!empty($formattedValues) ) { @@ -462,7 +462,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $contactID = $this->_params[0]['contact_id']; } else { - $contactID = parent::getContactID(); + $contactID = $this->getContactID(); } // if a discount has been applied, lets now deduct it from the amount @@ -563,7 +563,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { // we dont store in userID in case the user is doing multiple // transactions etc // for things like tell a friend - if (!parent::getContactID() && CRM_Utils_Array::value('is_primary', $value)) { + if (!$this->getContactID() && CRM_Utils_Array::value('is_primary', $value)) { $session->set('transaction.userID', $contactID); } diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index df56a419a1..a2eb53b55b 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -141,7 +141,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { return; } - $contactID = parent::getContactID(); + $contactID = $this->getContactID(); if ($contactID) { //@todo CRM-11915 I observed that even when the billing block is not present the routine to retrieve the billing defaults is still called - which seems a bit redundant. $names = array( @@ -342,7 +342,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { } } - $contactID = parent::getContactID(); + $contactID = $this->getContactID(); $this->assign('contact_id', $contactID); $this->assign('display_name', CRM_Contact_BAO_Contact::displayName($contactID)); @@ -449,7 +449,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $this->assign('bypassPayment', $bypassPayment); $this->assign('showHidePaymentInformation', $showHidePaymentInformation); - $userID = parent::getContactID(); + $userID = $this->getContactID(); if (!$userID) { $createCMSUser = FALSE; @@ -1225,7 +1225,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $contactID = $value['contact_id']; } else { - $contactID = parent::getContactID(); + $contactID = $this->getContactID(); } CRM_Event_Form_Registration_Confirm::fixLocationFields($value, $fields); @@ -1240,7 +1240,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { // we dont store in userID in case the user is doing multiple // transactions etc // for things like tell a friend - if (!parent::getContactID() && CRM_Utils_Array::value('is_primary', $value)) { + if (!$this->getContactID() && CRM_Utils_Array::value('is_primary', $value)) { $session->set('transaction.userID', $contactID); } @@ -1372,7 +1372,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $contactID = NULL; $session = CRM_Core_Session::singleton(); if (!$isAdditional) { - $contactID = parent::getContactID(); + $contactID = $self->getContactID(); } if (!$contactID && is_array($fields) && $fields) { -- 2.25.1