Skip to content
Snippets Groups Projects
Commit b2891982 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

worked on CRM-12238, fixed fatal when search contacts after selecting only state and not country

parent 2f1714c3
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment