summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-29 13:00:20 +0000
committerDouwe Maan <douwe@gitlab.com>2015-10-29 13:00:20 +0000
commit0574166a6117fa5eccc21f632b7f5ab528796fd6 (patch)
tree0e78a10646992bd2975f7a56f07c4827ed0fca51
parentead3ffd7a516911458d84311c4f1b4153f1071b5 (diff)
downloadgitlab-ce-0574166a6117fa5eccc21f632b7f5ab528796fd6.tar.gz
Fix grouping of contributors by email in graph.
-rw-r--r--app/assets/javascripts/stat_graph_contributors_util.js.coffee5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/stat_graph_contributors_util.js.coffee b/app/assets/javascripts/stat_graph_contributors_util.js.coffee
index cfe5508290f..f5584bcfe4b 100644
--- a/app/assets/javascripts/stat_graph_contributors_util.js.coffee
+++ b/app/assets/javascripts/stat_graph_contributors_util.js.coffee
@@ -6,7 +6,7 @@ window.ContributorsStatGraphUtil =
for entry in log
@add_date(entry.date, total) unless total[entry.date]?
- data = by_author[entry.author_name] #|| by_email[entry.author_email]
+ data = by_author[entry.author_name] || by_email[entry.author_email]
data ?= @add_author(entry, by_author, by_email)
@add_date(entry.date, data) unless data[entry.date]
@@ -95,5 +95,4 @@ window.ContributorsStatGraphUtil =
if date_range is null || date_range[0] <= new Date(date) <= date_range[1]
true
else
- false
-
+ false \ No newline at end of file