Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.3
-
Fix Version/s: 1.4
-
Component/s: Technical infrastructure
-
Labels:None
Description
Using the same code in Drupal, this worked in revision 4495, but not in 4543. The state_province_id field in the civicrm_address table is being marked as null if previously blank or unchanged if it was not null.
Code snippet:
if (function_exists('civicrm_initialize')) {
civicrm_initialize(TRUE);
$params = array('email' => 'rich@strangebirdlabs.com');
if ($contact = crm_get_contact($params))
}