Skip to content
Snippets Groups Projects
Commit 1cb0e254 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 8a8c28ac
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment