Skip to content
Snippets Groups Projects
Commit f97306c4 authored by catch's avatar catch
Browse files

Issue #2080571 by mrsinguyen: Remove Unused local variable $id from...

Issue #2080571 by mrsinguyen: Remove Unused local variable $id from /core/modules/comment/lib/Drupal/comment/Entity/Comment.php
parent af3f30b3
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -332,7 +332,7 @@ public static function postDelete(EntityStorageControllerInterface $storage_cont ...@@ -332,7 +332,7 @@ public static function postDelete(EntityStorageControllerInterface $storage_cont
$child_cids = $storage_controller->getChildCids($entities); $child_cids = $storage_controller->getChildCids($entities);
entity_delete_multiple('comment', $child_cids); entity_delete_multiple('comment', $child_cids);
foreach ($entities as $id => $entity) { foreach ($entities as $entity) {
$storage_controller->updateNodeStatistics($entity->nid->target_id); $storage_controller->updateNodeStatistics($entity->nid->target_id);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment