Sfoglia il codice sorgente

[autocomplete] Disable persistent filters

Bruno Galeotti 10 anni fa
parent
commit
d04af492c9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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) {