mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Queries: Updated all app book static query uses
This commit is contained in:
@@ -130,12 +130,12 @@ class SearchController extends Controller
|
||||
/**
|
||||
* Search siblings items in the system.
|
||||
*/
|
||||
public function searchSiblings(Request $request)
|
||||
public function searchSiblings(Request $request, SiblingFetcher $siblingFetcher)
|
||||
{
|
||||
$type = $request->get('entity_type', null);
|
||||
$id = $request->get('entity_id', null);
|
||||
|
||||
$entities = (new SiblingFetcher())->fetch($type, $id);
|
||||
$entities = $siblingFetcher->fetch($type, $id);
|
||||
|
||||
return view('entities.list-basic', ['entities' => $entities, 'style' => 'compact']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user