From: Kurund Jalmi Date: Wed, 3 Apr 2013 17:07:07 +0000 (+0100) Subject: worked on CRM-12238, fixed fatal when search contacts after selecting only state... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b289198290191892350a59f09d5d44c9461483b0;p=civicrm-core.git worked on CRM-12238, fixed fatal when search contacts after selecting only state and not country --- diff --git a/CRM/Contact/Form/Search/Criteria.php b/CRM/Contact/Form/Search/Criteria.php index 9819c322aa..888d5c8ac7 100644 --- a/CRM/Contact/Form/Search/Criteria.php +++ b/CRM/Contact/Form/Search/Criteria.php @@ -323,7 +323,7 @@ class CRM_Contact_Form_Search_Criteria { 'county' => 'county', ); if ($select == 'stateProvince') { - if (isset($formValues['country'])) { + if (CRM_Utils_Array::value('country', $formValues)) { $selectElements = array('' => ts('- select -')) + CRM_Core_PseudoConstant::stateProvinceForCountry($formValues['country']); } else {