From 1cb0e254dc0881586dbb1142141debebf933e24b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 3 Mar 2010 07:56:18 +0000 Subject: - Patch #693054 by yched: field_update_field() called the wrong field storage backend. --- modules/field/field.crud.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc index 80772279f..7e631f04c 100644 --- a/modules/field/field.crud.inc +++ b/modules/field/field.crud.inc @@ -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. -- cgit v1.2.3