X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fmodel%2Fcrm.designer.js;h=8ca76604eb683e3fcfde5510ffa952dbcfebcf8e;hb=1a10d7ed9e639131ccd758c5130a06c26101037a;hp=752cf86415c8fb75292ce486a7400b7ccc2341c7;hpb=faffa2c753facf2facdb129faf9f55ce201f7cf5;p=civicrm-core.git diff --git a/js/model/crm.designer.js b/js/model/crm.designer.js index 752cf86415..8ca76604eb 100644 --- a/js/model/crm.designer.js +++ b/js/model/crm.designer.js @@ -70,9 +70,7 @@ label: this.getLabel(), entity_name: this.get('entityName'), field_type: this.getFieldSchema().civiFieldType, - // For some reason the 'formatting' field gets a random number appended in core so we mimic that here. - // TODO: Why? - field_name: this.get('fieldName') == 'formatting' ? 'formatting_' + (Math.floor(Math.random() * 8999) + 1000) : this.get('fieldName') + field_name: this.get('fieldName') }); return model; }