Patch #29830 » 0002-fix-updated.patch
| app/helpers/queries_helper.rb | ||
|---|---|---|
|
end
|
||
|
# Returns the query definition as hidden field tags
|
||
|
def query_as_hidden_field_tags(query)
|
||
|
def query_as_hidden_field_tags(query, with_block_columns: false)
|
||
|
tags = hidden_field_tag("set_filter", "1", :id => nil)
|
||
|
if query.filters.present?
|
||
| ... | ... | |
|
else
|
||
|
tags << hidden_field_tag("f[]", "", :id => nil)
|
||
|
end
|
||
|
ignored_block_columns = with_block_columns ? [] : query.block_columns.map(&:name)
|
||
|
query.columns.each do |column|
|
||
|
next if ignored_block_columns.include? column.name
|
||
|
tags << hidden_field_tag("c[]", column.name, :id => nil)
|
||
|
end
|
||
|
if query.totalable_names.present?
|
||
| app/views/issues/index.html.erb | ||
|---|---|---|
|
<div id="csv-export-options" style="display:none;">
|
||
|
<h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
|
||
|
<%= form_tag(_project_issues_path(@project, :format => 'csv'), :method => :get, :id => 'csv-export-form') do %>
|
||
|
<%= query_as_hidden_field_tags(@query) %>
|
||
|
<%= query_as_hidden_field_tags(@query, with_block_columns: true) %>
|
||
|
<%= hidden_field_tag('query_name', @query.name) %>
|
||
|
<p>
|
||
|
<label><%= radio_button_tag 'c[]', '', true %> <%= l(:description_selected_columns) %></label><br />
|
||
- « Previous
- 1
- 2
- Next »