Commit 98ddd7b6 authored by dpolant's avatar dpolant Committed by bojanz
Browse files

Issue #2861391 by dpolant, bojanz:...

Issue #2861391 by dpolant, bojanz: address_post_update_convert_names_subdivisions() doesn't always fix the data
parent 79e2b976
......@@ -28,7 +28,7 @@ function address_post_update_convert_names_subdivisions(&$sandbox = NULL) {
$entity_type_id = $field[0];
$field_name = $field[1];
$storage = \Drupal::entityTypeManager()->getStorage($entity_type_id);
$query = $storage->getQuery()->exists($field_name . '.given_name');
$query = $storage->getQuery()->exists($field_name . '.country_code');
$entities = $storage->loadMultiple($query->execute());
foreach ($entities as $entity) {
_address_update_entity($entity, $field_name);
......
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