mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-27 13:36:06 +10:00
Don't try to count a relation with aliases
98f147e84d2bd8f2278452ac0852118452c76d4a fixed this for issues in HTML, but not MRs or Atom feeds.
This commit is contained in:
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
|
||||
xml.link href: issues_dashboard_url(format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
|
||||
xml.link href: issues_dashboard_url, rel: "alternate", type: "text/html"
|
||||
xml.id issues_dashboard_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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,7 +4,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
|
||||
xml.link href: namespace_project_issues_url(@project.namespace, @project, format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml"
|
||||
xml.link href: namespace_project_issues_url(@project.namespace, @project), rel: "alternate", type: "text/html"
|
||||
xml.id namespace_project_issues_url(@project.namespace, @project)
|
||||
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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user