From 884f4924d87eea044d88dc215f29811b2ed70c08 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 3 Dec 2014 12:26:20 -0500 Subject: [PATCH] Change state field name in buildForm hook. * memberdashboard.php (memberdashboard_civicrm_buildForm): Change field name to what it is on live. Yup, this is a hack. --- memberdashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memberdashboard.php b/memberdashboard.php index 8ceed2d..080303b 100644 --- a/memberdashboard.php +++ b/memberdashboard.php @@ -170,7 +170,7 @@ function memberdashboard_civicrm_buildForm($formName, &$form) { if($formName == 'CRM_Profile_Form_Edit') { $contactId = CRM_Core_Session::singleton()->get('userID'); $contact = civicrm_api3('contact', 'getsingle', array( 'id' => $contactId )); - $defaults['state_province-1'] = $contact['state_province_id']; + $defaults['state_province-Primary'] = $contact['state_province_id']; $form->setDefaults($defaults); } } -- 2.25.1