Issue #3066439 follow-up by alexpott: Stop invoking pre-save methods in EntityStorageInterface::restore()

(cherry picked from commit 19071a455f)
8.7.x
Alex Pott 2019-07-24 09:14:02 +01:00
parent 2a9176303f
commit dd26473652
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}