worked on CRM-12238, fixed fatal when search contacts after selecting only state...
authorKurund Jalmi <kurund@civicrm.org>
Wed, 3 Apr 2013 17:07:07 +0000 (18:07 +0100)
committerKurund Jalmi <kurund@civicrm.org>
Wed, 3 Apr 2013 17:07:07 +0000 (18:07 +0100)
CRM/Contact/Form/Search/Criteria.php

index 9819c322aa650cddbd9aaeb853a2fb13ddd29935..888d5c8ac745e7a2a0727d067fd8573c60fa27ac 100644 (file)
@@ -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 {