diff --git a/core/modules/image/image.module b/core/modules/image/image.module index ec64df3..ca12a18 100644 --- a/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -388,10 +388,6 @@ function image_filter_keyword($value, $current_pixels, $new_pixels) { function image_entity_presave(EntityInterface $entity) { $field = FALSE; - if ($entity->isSyncing()) { - return; - } - $entity_type_id = $entity->getEntityTypeId(); if ($entity_type_id == 'field_instance_config') { $field = $entity->getField(); @@ -404,6 +400,10 @@ function image_entity_presave(EntityInterface $entity) { return; } + if ($field->isSyncing()) { + return; + } + $fid = $entity->settings['default_image']['fid']; if ($fid) { $original_fid = isset($entity->original) ? $entity->original->settings['default_image']['fid'] : NULL;