mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed bad key lookup in FlexRelatedDirectoryTrait::getCollectionByProperty()
This commit is contained in:
parent
1c148ab6fb
commit
b2cfc4ef5f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user