Skip to content

Commit c319813

Browse files
committed
Merge branch '4.x' into bugfix/clean-session-return-url
2 parents a02a2df + 5187667 commit c319813

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/Elements.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,6 +2834,8 @@ public function createEagerLoadingPlans(string|array $with): array
28342834
if (!$path->count && !$path->all) {
28352835
$path->all = true;
28362836
}
2837+
// ...recursively for any nested plans
2838+
$path->nested = $this->createEagerLoadingPlans($path->nested);
28372839

28382840
// Don't index the plan by its alias, as two plans w/ different `when` filters could be using the same alias.
28392841
// Side effect: mixing EagerLoadPlan objects and arrays could result in redundant element queries,

0 commit comments

Comments
 (0)