From ca2904dc9969eecb4a86095c290a76c3e62153fa Mon Sep 17 00:00:00 2001 From: Shea Lewis Date: Fri, 19 Feb 2016 15:33:17 -0800 Subject: [PATCH] Pull enabled status from cache and inject in manifest --- src/Repositories/LocalRepository.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Repositories/LocalRepository.php b/src/Repositories/LocalRepository.php index 00c8a00a..a076b566 100644 --- a/src/Repositories/LocalRepository.php +++ b/src/Repositories/LocalRepository.php @@ -117,6 +117,14 @@ public function getProperties($slug) $collection->put('order', 9001); } + if (! $collection->has('order')) { + $collection->put('order', 9001); + } + + if (! $collection->has('enabled')) { + $collection->put('enabled', $this->isEnabled($collection->get('slug'))); + } + return $collection; }