Merge pull request #21761 from eileenmcnaughton/contact
[civicrm-core.git] / js / model / crm.designer.js
index 752cf86415c8fb75292ce486a7400b7ccc2341c7..8ca76604eb683e3fcfde5510ffa952dbcfebcf8e 100644 (file)
@@ -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;
     }