projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd0e71
)
Only set appropriate fields
author
Coleman Watts
<coleman@civicrm.org>
Fri, 15 Mar 2013 21:35:54 +0000
(14:35 -0700)
committer
Coleman Watts
<coleman@civicrm.org>
Fri, 15 Mar 2013 21:35:54 +0000
(14:35 -0700)
js/model/crm.designer.js
patch
|
blob
|
blame
|
history
diff --git
a/js/model/crm.designer.js
b/js/model/crm.designer.js
index 8d1eb1f093332f2c5f12b800c323bad46cae960e..03f8fc6ccb563d71aa1e4db03a738d73c2f61257 100644
(file)
--- a/
js/model/crm.designer.js
+++ b/
js/model/crm.designer.js
@@
-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;