core/modules/editor/editor.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index f181ef1..08f1711 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -393,7 +393,7 @@ function editor_entity_update(EntityInterface $entity) { // Detect file usages that should be decremented. foreach ($original_uuids_by_field as $field => $uuids) { - $removed_files = array_diff($original_uuids_by_field[$field], $uuids_by_field[$field]); + $removed_files = DiffArray::diffOnce($original_uuids_by_field[$field], $uuids_by_field[$field]); _editor_delete_file_usage($removed_files, $entity, 1); } }