From c1abffd74b176e73fb5f9f8ca91f38bf6f497ba6 Mon Sep 17 00:00:00 2001
From: Matt Kirman <matt@mattkirman.com>
Date: Tue, 30 Sep 2014 09:46:51 +0100
Subject: [PATCH] Dashboard statistics should use 'period' as the date limiter

The statistics module on the dashboard was using the incorrect query parameter
'stop'. This meant that the module was loading all tickets from the report start
date to the present day. This commit fixes this by using the 'period' parameter
instead.
---
 scp/js/dashboard.inc.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp/js/dashboard.inc.js b/scp/js/dashboard.inc.js
index b16aebf10..c902e4be2 100644
--- a/scp/js/dashboard.inc.js
+++ b/scp/js/dashboard.inc.js
@@ -140,7 +140,7 @@
             method:     'GET',
             dataType:   'json',
             url:        'ajax.php/report/overview/table',
-            data:       {group: group, start: start, stop: stop},
+            data:       {group: group, start: start, period: stop},
             success:    function(json) {
                 var q = $('<table>').attr({'class':'table table-condensed table-striped'}),
                     h = $('<tr>').appendTo($('<thead>').appendTo(q)),
-- 
GitLab