From ccbb954b3e353d3d7a40a3812fc74c9dac114e07 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 1 Jan 2013 12:40:16 +0000 Subject: [PATCH] fix a bug where the statistics dialog wouldn't display before the first new sign-up of the current year --- static/js/pandora/statisticsDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index e3e26f614..37c76f283 100644 --- a/static/js/pandora/statisticsDialog.js +++ b/static/js/pandora/statisticsDialog.js @@ -203,7 +203,7 @@ pandora.ui.statisticsDialog = function() { Ox.loop(firstKey[0], lastKey[0] + 1, function(year) { ['firstseen', 'lastseen'].forEach(function(key) { var key = [year, key].join('-'); - data[mode].year[key] = data[mode].year[key] || 0; + data[mode].year[key] = data[mode].year[key] || {}; }); Ox.loop( year == firstKey[0] ? firstKey[1] : 1,