mirror of
https://github.com/getgrav/grav.git
synced 2026-01-31 03:40:32 +01:00
Fix to address #361 - ability to have multiple collections in a regular list.
This commit is contained in:
@@ -1938,7 +1938,12 @@ class Page
|
||||
} else {
|
||||
$result = [];
|
||||
foreach($value as $key => $val) {
|
||||
$result = $result + $this->evaluate([$key=>$val])->toArray();
|
||||
if (is_int($key)) {
|
||||
$result = $result + $this->evaluate($val)->toArray();
|
||||
} else {
|
||||
$result = $result + $this->evaluate([$key=>$val])->toArray();
|
||||
}
|
||||
|
||||
}
|
||||
return new Collection($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user