From: Tim Otten Date: Mon, 3 Nov 2014 02:20:29 +0000 (-0800) Subject: CRM-15578 - crmUiLabel - On error, log more debug details X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1d81a305edb52f8ce63d9a5e9629793824911cca;p=civicrm-core.git CRM-15578 - crmUiLabel - On error, log more debug details --- diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index 5fc728e3cc..554e571b6c 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -51,7 +51,7 @@ var formCtrl = scope.$parent.$eval(form.attr('name')); var input = $('input[name="' + attrs.crmFor + '"],select[name="' + attrs.crmFor + '"],textarea[name="' + attrs.crmFor + '"]', form); if (form.length != 1 || input.length != 1) { - if (console.log) console.log('Label cannot be matched to input element. Expected to find one form and one input.', form.length, input.length); + if (console.log) console.log('Label cannot be matched to input element. Expected to find one form and one input[name='+attrs.crmFor+'].', form.length, input.length); return; }