From: Donald A. Lobo Date: Tue, 16 Apr 2013 15:13:40 +0000 (-0700) Subject: CRM-12360 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ef0d4de8b06a73c463a8c323b78ef88261896fa3;p=civicrm-core.git CRM-12360 ---------------------------------------- * CRM-12360: city field not available on address edit if language is NL http://issues.civicrm.org/jira/browse/CRM-12360 --- diff --git a/CRM/Core/BAO/Address.php b/CRM/Core/BAO/Address.php index b12a481c65..94115311a5 100644 --- a/CRM/Core/BAO/Address.php +++ b/CRM/Core/BAO/Address.php @@ -364,12 +364,15 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address { CRM_Utils_Address_USPS::checkAddress($params); // do street parsing again if enabled, since street address might have changed - $parseStreetAddress = CRM_Utils_Array::value('street_address_parsing', - CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, - 'address_options' - ), - FALSE - ); + $parseStreetAddress = + CRM_Utils_Array::value( + 'street_address_parsing', + CRM_Core_BAO_Setting::valueOptions( + CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, + 'address_options' + ), + FALSE + ); if ($parseStreetAddress && !empty($params['street_address'])) { foreach (array( @@ -875,9 +878,11 @@ ORDER BY civicrm_address.is_primary DESC, civicrm_address.location_type_id DESC, static function validateAddressOptions($fields) { static $addressOptions = NULL; if (!$addressOptions) { - $addressOptions = CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, - 'address_options', TRUE, NULL, TRUE - ); + $addressOptions = + CRM_Core_BAO_Setting::valueOptions( + CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, + 'address_options' + ); } if (is_array($fields) && !empty($fields)) {