]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/MixedEntityListLoader.php
Search: Started work to make search result size consistent
[bookstack] / app / Entities / Tools / MixedEntityListLoader.php
index 0a0f224d86c65441d75dc799b5ca1eabbefd05d5..9987cc061ce17a0888026df067f470951f2f1039 100644 (file)
@@ -54,7 +54,7 @@ class MixedEntityListLoader
         $modelMap = [];
 
         foreach ($idsByType as $type => $ids) {
-            $base = $withContents ? $this->queries->visibleForContent($type) : $this->queries->visibleForList($type);
+            $base = $withContents ? $this->queries->visibleForContentForType($type) : $this->queries->visibleForListForType($type);
             $models = $base->whereIn('id', $ids)
                 ->with($eagerLoadParents ? $this->getRelationsToEagerLoad($type) : [])
                 ->get();