diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-29 04:42:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-29 04:42:56 +0000 |
commit | ce1cc587af80a4fbf4608c5b13b92ed6b1ff34b7 (patch) | |
tree | 7e7de2150bc782d4d832085ccca1f022bb5a014c /modules/field_ui/field_ui.module | |
parent | 770e0d54f9c5b33c4d01b5cefe652b61b132dc0c (diff) | |
download | brdo-ce1cc587af80a4fbf4608c5b13b92ed6b1ff34b7.tar.gz brdo-ce1cc587af80a4fbf4608c5b13b92ed6b1ff34b7.tar.bz2 |
#553292 by yched: Fixed bug with formatter settings getting lost when saving a field.
Diffstat (limited to 'modules/field_ui/field_ui.module')
-rw-r--r-- | modules/field_ui/field_ui.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/field_ui/field_ui.module b/modules/field_ui/field_ui.module index ee393590d..0f29be6cb 100644 --- a/modules/field_ui/field_ui.module +++ b/modules/field_ui/field_ui.module @@ -253,6 +253,9 @@ function field_ui_update_field($field) { $field_types = field_info_field_types(); $module = $field_types[$field['type']]['module']; + // If needed, remove the 'bundles' element added by field_info_field. + unset($field['bundles']); + $defaults = field_info_field_settings($field['type']); $field['settings'] = array_merge($defaults, (array) $field['settings']); $data = $field; |