diff options
author | Sean McGivern <sean@gitlab.com> | 2016-06-10 16:22:50 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-06-10 16:29:08 +0300 |
commit | c7941acd1e410fedb431efe13dc3b74dfa7f9f8a (patch) | |
tree | b46474421574b8aa34d7dfd3c0486ec091278d84 /app/views/shared | |
parent | 49c06ba39133ea3f3468729d661264f77219d251 (diff) |
Don't try to count a relation with aliases
98f147e84d2bd8f2278452ac0852118452c76d4a fixed this for issues in HTML,
but not MRs or Atom feeds.
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/_merge_requests.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_merge_requests.html.haml b/app/views/shared/_merge_requests.html.haml index e74fc36c797..ca3178395c1 100644 --- a/app/views/shared/_merge_requests.html.haml +++ b/app/views/shared/_merge_requests.html.haml @@ -1,4 +1,4 @@ -- if @merge_requests.any? +- if @merge_requests.reorder(nil).any? - @merge_requests.group_by(&:target_project).each do |group| .panel.panel-default.panel-small - project = group[0] |