]> BookStack Code Mirror - bookstack/commitdiff
Entity popular queriy: Loaded parents for selector breadcrumbs
authorDan Brown <redacted>
Wed, 28 Feb 2024 13:20:24 +0000 (13:20 +0000)
committerDan Brown <redacted>
Wed, 28 Feb 2024 13:20:24 +0000 (13:20 +0000)
app/Entities/Queries/QueryPopular.php

index 2b46ebfbcf937caf1a1546290a6ce89c139aa868..85f88a1d19c9bd50804198267f21b0986caa29f6 100644 (file)
@@ -35,7 +35,7 @@ class QueryPopular
             ->take($count)
             ->get();
 
-        $this->listLoader->loadIntoRelations($views->all(), 'viewable', false);
+        $this->listLoader->loadIntoRelations($views->all(), 'viewable', true);
 
         return $views->pluck('viewable')->filter();
     }