Skip to content
Snippets Groups Projects
Unverified Commit 19071a45 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3066439 follow-up by alexpott: Stop invoking pre-save methods in...

Issue #3066439 follow-up by alexpott: Stop invoking pre-save methods in EntityStorageInterface::restore()
parent 347dbb0e
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,7 @@ function taxonomy_update_8702(&$sandbox) {
// and this used to fix the parent field langcode data.
// - Terms are using a SQL-based storage class.
if (!$field_storage_definition->isTranslatable() &&
!$entity_type->isRevisionable() &&
!$entity_type->isRevisionable() &&
is_subclass_of($entity_type->getStorageClass(), SqlEntityStorageInterface::class)
) {
// taxonomy_update_8502() populated the langcode field of
......@@ -227,7 +227,8 @@ function taxonomy_update_8702(&$sandbox) {
->condition('tdf.default_langcode', 1);
if (!isset($sandbox['max'])) {
$sandbox['max'] = (clone $select)->countQuery()->execute()->fetchField();
$count_query = clone $select;
$sandbox['max'] = $count_query->countQuery()->execute()->fetchField();
$sandbox['current'] = 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment