Browse Source

Merge pull request #3074 from bgaleotti/autocomplete

[autocomplete] Disable persistent filters
Andrej Hudec 9 years ago
parent
commit
b553538827
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Controller/HelperController.php

+ 1 - 0
Controller/HelperController.php

@@ -345,6 +345,7 @@ class HelperController
             return new JsonResponse(array('status' => 'KO', 'message' => 'Too short search string.'), 403);
         }
 
+        $targetAdmin->setPersistFilters(false);
         $datagrid = $targetAdmin->getDatagrid();
 
         if ($callback !== null) {