Browse Source

Fix missing parameter

Daniel Libonati 6 years ago
parent
commit
78c3fb2952
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/StatsBundle/Controller/StatsController.php

+ 1 - 1
src/StatsBundle/Controller/StatsController.php

@@ -2426,7 +2426,7 @@ class StatsController extends Controller
         
         $from = date("Y-m-d",strtotime('-30 days'));
         $to = date("Y-m-d");
-        
+        $limit = $request->query->get('limit') ?: 30;
         $serializer = $this->container->get('serializer');
         $em = $this->get('doctrine')->getManager();