diff options
| author | Sean McGivern <sean@gitlab.com> | 2016-06-10 14:22:50 +0100 |
|---|---|---|
| committer | Sean McGivern <sean@gitlab.com> | 2016-06-10 14:29:08 +0100 |
| commit | c7941acd1e410fedb431efe13dc3b74dfa7f9f8a (patch) | |
| tree | b46474421574b8aa34d7dfd3c0486ec091278d84 /app/views/groups | |
| parent | 49c06ba39133ea3f3468729d661264f77219d251 (diff) | |
| download | gitlab-ce-c7941acd1e410fedb431efe13dc3b74dfa7f9f8a.tar.gz | |
Don't try to count a relation with aliases18446-when-this-merge-request-is-accepted-this-issue-will-be-closed-automatically-rendered-twice
98f147e84d2bd8f2278452ac0852118452c76d4a fixed this for issues in HTML,
but not MRs or Atom feeds.
Diffstat (limited to 'app/views/groups')
| -rw-r--r-- | app/views/groups/issues.atom.builder | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/groups/issues.atom.builder b/app/views/groups/issues.atom.builder index c19671295af..b1628040325 100644 --- a/app/views/groups/issues.atom.builder +++ b/app/views/groups/issues.atom.builder @@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear xml.link href: issues_group_url(format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml" xml.link href: issues_group_url, rel: "alternate", type: "text/html" xml.id issues_group_url - xml.updated @issues.first.created_at.xmlschema if @issues.any? + xml.updated @issues.first.created_at.xmlschema if @issues.reorder(nil).any? - xml << render(partial: 'issues/issue', collection: @issues) if @issues.any? + xml << render(partial: 'issues/issue', collection: @issues) if @issues.reorder(nil).any? end |
