From: Coleman Watts Date: Thu, 28 Aug 2014 11:35:37 +0000 (+0100) Subject: Additional check to see if profileCreate links are empty X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d706958c9f4f7cca25ce4626e34c48a52d4b37ad;p=civicrm-core.git Additional check to see if profileCreate links are empty --- 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;