Commit 1cb0e254 authored by Dries's avatar Dries
Browse files

- Patch #693054 by yched: field_update_field() called the wrong field storage backend.

parent 8a8c28ac
......@@ -433,7 +433,8 @@ function field_update_field($field) {
// Tell the storage engine to update the field. Do this before
// saving the new definition since it still might fail.
module_invoke(variable_get('field_storage_default', 'field_sql_storage'), 'field_storage_update_field', $field, $prior_field, $has_data);
$storage_type = field_info_storage_types($field['storage']['type']);
module_invoke($storage_type['module'], 'field_storage_update_field', $field, $prior_field, $has_data);
// Save the new field definition. @todo: refactor with
// field_create_field.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment