diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb
index c4719569d..a0ad8b5e7 100644
--- a/app/views/issues/index.html.erb
+++ b/app/views/issues/index.html.erb
@@ -47,11 +47,21 @@
+
<% @query.available_block_columns.each do |column| %> - + <% end %>
+ <%= javascript_tag do %> + $(function(){ + $('input[type="radio"][value="all_inline"]').click(function(){ + var block_columns = $('#csv-export-block-columns input[type="checkbox"]'); + if(block_columns.length && !block_columns.is(':checked')){ + block_columns.prop('checked', true); + } + }); + }); + <% end %> <%= export_csv_encoding_select_tag %> <% if @issue_count > Setting.issues_export_limit.to_i %>
diff --git a/app/views/timelog/index.html.erb b/app/views/timelog/index.html.erb
index f60b51064..8ee8e4fe7 100644
--- a/app/views/timelog/index.html.erb
+++ b/app/views/timelog/index.html.erb
@@ -40,11 +40,21 @@
+
<% @query.available_block_columns.each do |column| %> - + <% end %>
+ <%= javascript_tag do %> + $(function(){ + $('input[type="radio"][value="all_inline"]').click(function(){ + var block_columns = $('#csv-export-block-columns input[type="checkbox"]'); + if(block_columns.length && !block_columns.is(':checked')){ + block_columns.prop('checked', true); + } + }); + }); + <% end %> <%= export_csv_encoding_select_tag %>