From 80eda9d1f85703391f1722cff1f436a998be0bd2 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Wed, 12 Apr 2017 10:46:06 -0400 Subject: [PATCH] CRM-20419 profile js: don't use $.isEmptyObject() on arrays --- js/model/crm.uf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/model/crm.uf.js b/js/model/crm.uf.js index 98727ffb24..043d08a5fa 100644 --- a/js/model/crm.uf.js +++ b/js/model/crm.uf.js @@ -110,7 +110,7 @@ case 'Case': return 'case_1'; default: - if (!$.isEmptyObject(CRM.contactSubTypes) && ($.inArray(field_type,CRM.contactSubTypes) > -1)) { + if (CRM.contactSubTypes.length && ($.inArray(field_type,CRM.contactSubTypes) > -1)) { return 'contact_1'; } else { -- 2.25.1