]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed search bug 2667/head
authorNicolas LÅ“uillet <nicolas@loeuillet.org>
Thu, 15 Dec 2016 20:31:13 +0000 (21:31 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 15 Dec 2016 20:38:16 +0000 (21:38 +0100)
src/Wallabag/CoreBundle/Controller/EntryController.php

index 9ed1cb12699c37940340ab47a23f30d71747f29f..ff6f564eb7e5c70a820449d6240ea4e26c21e030 100644 (file)
@@ -278,7 +278,7 @@ class EntryController extends Controller
     {
         $repository = $this->get('wallabag_core.entry_repository');
         $searchTerm = (isset($request->get('search_entry')['term']) ? $request->get('search_entry')['term'] : '');
-        $currentRoute = (!is_null($request->get('currentRoute')) ? $request->get('currentRoute') : '');
+        $currentRoute = (!is_null($request->query->get('currentRoute')) ? $request->query->get('currentRoute') : '');
 
         switch ($type) {
             case 'search':