Available in CSV Internal Error #1175
This commit is contained in:
parent
ab1d1eb767
commit
58ecaca72e
@ -80,7 +80,8 @@ class DmsfController < ApplicationController
|
||||
@offset, @limit = api_offset_and_limit
|
||||
}
|
||||
format.csv {
|
||||
send_data query_to_csv(@query.dmsf_nodes, @query), type: 'text/csv; header=present', filename: 'dmsf.csv'
|
||||
send_data query_to_csv(@query.dmsf_nodes, @query), type: 'text/csv; header=present',
|
||||
filename: 'dmsf.csv'
|
||||
}
|
||||
end
|
||||
else
|
||||
|
||||
@ -29,7 +29,7 @@ class DmsfQuery < Query
|
||||
|
||||
# Standard columns
|
||||
self.available_columns = [
|
||||
QueryColumn.new(:id, sortable: 'id', caption: '#'),
|
||||
QueryColumn.new(:id, sortable: 'id', caption: +'#'),
|
||||
DmsfTitleQueryColumn.new(:title, sortable: 'title', frozen: true),
|
||||
QueryColumn.new(:size, sortable: 'size'),
|
||||
DmsfModifiedQueryColumn.new(:modified, sortable: 'updated'),
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
|
||||
<% unless @folder && @folder.system %>
|
||||
<% other_formats_links do |f| %>
|
||||
<%= f.link_to 'CSV', url: { action: :show, id: @project, folder_id: @folder } %>
|
||||
<%= f.link_to 'CSV', url: { action: :show, id: @project, folder_id: @folder, encoding: Encoding::UTF_8 } %>
|
||||
<span>
|
||||
<%= link_to 'WebDAV', webdav_url(@project, @folder) %>
|
||||
</span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user