mirror of
https://github.com/getgrav/grav.git
synced 2026-06-16 22:11:45 +02:00
Fixed bad key lookup in FlexRelatedDirectoryTrait::getCollectionByProperty()
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
* Upgraded to **composer v2.1.14** for PHP 8.1 compatibility
|
||||
* Added third `$name` parameter to `Blueprint::flattenData()` method, useful for flattening repeating data
|
||||
* `ControllerResponseTrait`: Redirect response should be json if the extension is .json
|
||||
3. [](#bugfix)
|
||||
* Fixed bad key lookup in `FlexRelatedDirectoryTrait::getCollectionByProperty()`
|
||||
|
||||
# v1.7.25
|
||||
## 11/16/2021
|
||||
|
||||
@@ -36,7 +36,7 @@ trait FlexRelatedDirectoryTrait
|
||||
|
||||
/** @var FlexCollection $collection */
|
||||
$collection = $collection->filter(static function ($object) use ($list) {
|
||||
return in_array($object->id, $list, true);
|
||||
return in_array($object->getKey(), $list, true);
|
||||
});
|
||||
|
||||
return $collection;
|
||||
|
||||
Reference in New Issue
Block a user