mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
ExportController: fix entries export from search view
Fixes #4240 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
3bf941c4a4
commit
93c5b47e88
4 changed files with 99 additions and 14 deletions
|
@ -68,6 +68,18 @@ class ExportController extends Controller
|
|||
);
|
||||
|
||||
$title = 'Tag ' . $tag->getLabel();
|
||||
} elseif ('search' === $category) {
|
||||
$searchTerm = (isset($request->get('search_entry')['term']) ? $request->get('search_entry')['term'] : '');
|
||||
$currentRoute = (null !== $request->query->get('currentRoute') ? $request->query->get('currentRoute') : '');
|
||||
|
||||
$entries = $repository->getBuilderForSearchByUser(
|
||||
$this->getUser()->getId(),
|
||||
$searchTerm,
|
||||
$currentRoute
|
||||
)->getQuery()
|
||||
->getResult();
|
||||
|
||||
$title = 'Search ' . $searchTerm;
|
||||
} else {
|
||||
$entries = $repository
|
||||
->$methodBuilder($this->getUser()->getId())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue