1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Search: Updated popular items query, load parent book for chapters/pages

Primarily intended to show parent book for chapters when moving/copying
pages, since the default parent selector interfaces, which used the
entity-selector search endpoint, would run this popular query when no
term was present as a default backup.

For #4264
This commit is contained in:
Dan Brown
2023-06-10 15:08:07 +01:00
parent 777027bc48
commit af0b4fa851
3 changed files with 33 additions and 6 deletions

View File

@@ -9,11 +9,9 @@ use Illuminate\Http\Request;
class SearchController extends Controller
{
protected SearchRunner $searchRunner;
public function __construct(SearchRunner $searchRunner)
{
$this->searchRunner = $searchRunner;
public function __construct(
protected SearchRunner $searchRunner
) {
}
/**