From 1d81a305edb52f8ce63d9a5e9629793824911cca Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 2 Nov 2014 18:20:29 -0800 Subject: [PATCH] CRM-15578 - crmUiLabel - On error, log more debug details --- js/angular-crm-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1