From b289198290191892350a59f09d5d44c9461483b0 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Wed, 3 Apr 2013 18:07:07 +0100 Subject: [PATCH] worked on CRM-12238, fixed fatal when search contacts after selecting only state and not country --- CRM/Contact/Form/Search/Criteria.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.25.1