Commit 2ba10aa7 authored by andypost's avatar andypost

Prevent loops in recursion

parent 95ac944d
......@@ -324,7 +324,8 @@ class DefaultContentManager implements DefaultContentManagerInterface {
if ($dependent_entity instanceof ConfigEntityInterface) {
unset($entity_dependencies[$id]);
}
else {
elseif (!isset($entity_dependencies[$id])) {
// Prevent loops.
$entity_dependencies = array_merge($entity_dependencies, $this->getEntityReferencesRecursive($dependent_entity, $depth + 1));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment