Only set appropriate fields
authorColeman Watts <coleman@civicrm.org>
Fri, 15 Mar 2013 21:35:54 +0000 (14:35 -0700)
committerColeman Watts <coleman@civicrm.org>
Fri, 15 Mar 2013 21:35:54 +0000 (14:35 -0700)
js/model/crm.designer.js

index 8d1eb1f093332f2c5f12b800c323bad46cae960e..03f8fc6ccb563d71aa1e4db03a738d73c2f61257 100644 (file)
@@ -60,7 +60,7 @@
       name = this.get('fieldName').split('_');
       if (name[0] === 'custom') {
         CRM.api('custom_field', 'getsingle', {id: name[1]}, {success: function(field) {
-          ufFieldModel.set(field);
+          ufFieldModel.set(_.pick(field, 'help_pre', 'help_post', 'is_required'));
         }});
       }
       return ufFieldModel;