From 30e98924109ba67561e2c5e373a1700ec0fba5c2 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Sat, 29 Jun 2013 22:18:58 +0530 Subject: [PATCH] worked on CRM-12916, setting state defaults --- CRM/Event/Form/Registration/Register.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 1d46ace555..cfc43be1fe 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -179,10 +179,9 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $this->_defaults["billing_country_id-{$this->_bltID}"] = $config->defaultContactCountry; } - // now fix all state country selectors - CRM_Core_BAO_Address::fixAllStateSelects($this, $this->_defaults); - if ($this->_snippet) { + // now fix all state country selectors + CRM_Core_BAO_Address::fixAllStateSelects($this, $this->_defaults); return $this->_defaults; } @@ -214,6 +213,9 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { CRM_Core_BAO_UFGroup::setProfileDefaults($contactID, $fields, $this->_defaults); } + // now fix all state country selectors + CRM_Core_BAO_Address::fixAllStateSelects($this, $this->_defaults); + // Set default payment processor as default payment_processor radio button value if (!empty($this->_paymentProcessors)) { foreach ($this->_paymentProcessors as $pid => $value) { -- 2.25.1