From d706958c9f4f7cca25ce4626e34c48a52d4b37ad Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 28 Aug 2014 12:35:37 +0100 Subject: [PATCH] Additional check to see if profileCreate links are empty --- js/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index f194ebecd6..d24689ebe5 100644 --- a/js/Common.js +++ b/js/Common.js @@ -385,7 +385,7 @@ CRM.strings = CRM.strings || {}; if ($el.data('create-links') && entity.toLowerCase() === 'contact') { selectParams.formatInputTooShort = function() { var txt = $el.data('select-params').formatInputTooShort || $.fn.select2.defaults.formatInputTooShort.call(this); - if ($el.data('create-links') && CRM.profileCreate) { + if ($el.data('create-links') && CRM.profileCreate && CRM.profileCreate.length) { txt += ' ' + ts('or') + '
' + formatSelect2CreateLinks($el); } return txt; -- 2.25.1