Defect #32985 ยป 32985.patch
app/controllers/boards_controller.rb | ||
---|---|---|
56 | 56 |
render :action => 'show', :layout => !request.xhr? |
57 | 57 |
end |
58 | 58 |
format.atom do |
59 |
@messages = @board.messages.
|
|
59 |
messages = @board.messages. |
|
60 | 60 |
reorder(:id => :desc). |
61 | 61 |
includes(:author, :board). |
62 | 62 |
limit(Setting.feeds_limit.to_i). |
63 | 63 |
to_a |
64 |
render_feed(@messages, :title => "#{@project}: #{@board}")
|
|
64 |
render_feed(messages, :title => "#{@project}: #{@board}") |
|
65 | 65 |
end |
66 | 66 |
end |
67 | 67 |
end |
app/controllers/issues_controller.rb | ||
---|---|---|
67 | 67 |
end |
68 | 68 |
end |
69 | 69 |
format.atom do |
70 |
@issues = @query.issues(:limit => Setting.feeds_limit.to_i)
|
|
71 |
render_feed(@issues,
|
|
70 |
issues = @query.issues(:limit => Setting.feeds_limit.to_i) |
|
71 |
render_feed(issues, |
|
72 | 72 |
:title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}") |
73 | 73 |
end |
74 | 74 |
format.csv do |
75 |
@issues = @query.issues(:limit => Setting.issues_export_limit.to_i)
|
|
76 |
send_data(query_to_csv(@issues, @query, params[:csv]),
|
|
75 |
issues = @query.issues(:limit => Setting.issues_export_limit.to_i) |
|
76 |
send_data(query_to_csv(issues, @query, params[:csv]), |
|
77 | 77 |
:type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'issues')}.csv") |
78 | 78 |
end |
79 | 79 |
format.pdf do |
app/controllers/projects_controller.rb | ||
---|---|---|
77 | 77 |
end |
78 | 78 |
format.csv do |
79 | 79 |
# Export all entries |
80 |
@entries = scope.to_a
|
|
81 |
send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => 'projects.csv')
|
|
80 |
entries = scope.to_a |
|
81 |
send_data(query_to_csv(entries, @query, params), :type => 'text/csv; header=present', :filename => 'projects.csv') |
|
82 | 82 |
end |
83 | 83 |
end |
84 | 84 |
end |
app/controllers/timelog_controller.rb | ||
---|---|---|
66 | 66 |
end |
67 | 67 |
format.csv do |
68 | 68 |
# Export all entries |
69 |
@entries = scope.to_a
|
|
70 |
send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'timelog')}.csv")
|
|
69 |
entries = scope.to_a |
|
70 |
send_data(query_to_csv(entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'timelog')}.csv") |
|
71 | 71 |
end |
72 | 72 |
end |
73 | 73 |
end |
app/controllers/users_controller.rb | ||
---|---|---|
73 | 73 |
end |
74 | 74 |
format.csv do |
75 | 75 |
# Export all entries |
76 |
@entries = scope.to_a
|
|
77 |
send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'users')}.csv")
|
|
76 |
entries = scope.to_a |
|
77 |
send_data(query_to_csv(entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'users')}.csv") |
|
78 | 78 |
end |
79 | 79 |
format.api do |
80 | 80 |
@offset, @limit = api_offset_and_limit |