From 091785063428f8a7d05d720e960cf97d50119b3d Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 14 Mar 2019 13:27:13 +0200 Subject: [PATCH] Oops, fix a bug --- system/src/Grav/Framework/Flex/FlexDirectory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Framework/Flex/FlexDirectory.php b/system/src/Grav/Framework/Flex/FlexDirectory.php index a4c6c6492..70ca5ff30 100644 --- a/system/src/Grav/Framework/Flex/FlexDirectory.php +++ b/system/src/Grav/Framework/Flex/FlexDirectory.php @@ -639,9 +639,9 @@ class FlexDirectory implements FlexAuthorizeInterface } // We need to do this in two steps as orderBy() calls loadIndex() again and we do not want infinite loop. - $index = $this->createIndex($keys); + $this->index = $this->createIndex($keys); /** @var FlexCollectionInterface $collection */ - $collection = $index->orderBy($this->getConfig('data.ordering', [])); + $collection = $this->index->orderBy($this->getConfig('data.ordering', [])); $this->index = $index = $collection->getIndex(); $debugger->stopTimer('flex-keys-' . $this->type . $j);