Commit dcb33a46 authored by git's avatar git Committed by larowlan

Issue #2784741 by Bambell, Berdir, andypost: Error while field storage definition

parent 8ec66187
......@@ -42,7 +42,7 @@ function _contact_storage_ensure_fields() {
$field_manager = \Drupal::service('entity_field.manager');
$entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
foreach (['id', 'created'] as $field_name) {
foreach (['id', 'created', 'uid', 'ip_address'] as $field_name) {
$field_definition = $field_manager->getFieldStorageDefinitions('contact_message')[$field_name];
$entity_definition_update_manager->installFieldStorageDefinition($field_name, 'contact_message', 'contact_storage', $field_definition);
}
......
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