diff --git a/templates/CRM/Contact/Form/Search/Builder.js b/templates/CRM/Contact/Form/Search/Builder.js index 71b981f92ac6d469eb9349c32fadf622f69f131e..d5d19e97714682a3eb86d47f7f4d2dfe8e72fada 100644 --- a/templates/CRM/Contact/Form/Search/Builder.js +++ b/templates/CRM/Contact/Form/Search/Builder.js @@ -122,7 +122,7 @@ } } $.each(CRM.searchBuilder.fieldOptions[field], function(key, option) { - var selected = ($.inArray(option.key, options) > -1) ? 'selected="selected"' : ''; + var selected = ($.inArray(''+option.key, options) > -1) ? 'selected="selected"' : ''; select.append('<option value="' + option.key + '"' + selected + '>' + option.value + '</option>'); }); select.change();