mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Solved infinite recursion bug
This commit is contained in:
@@ -105,7 +105,7 @@ final class TreeSourceService extends AbstractSourceService implements TreeSourc
|
||||
{
|
||||
$leaves = new ArrayCollection($this->getLeaves()->toArray());
|
||||
foreach ($this->getAllBranches() as $branch) {
|
||||
foreach ((new self($branch))->getAllLeaves() as $leave) {
|
||||
foreach ((new self($branch))->getLeaves() as $leave) {
|
||||
if (! $leaves->contains($leave)) {
|
||||
$leaves->add($leave);
|
||||
}
|
||||
|
Reference in New Issue
Block a user