From 5cedc4ad3503704ae874523328762a87ca710a82 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 15 Mar 2019 07:54:17 +0000 Subject: [PATCH] Merged r17955 and r17956 to 4.0-stable (#26836). git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17957 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/context_menus_controller.rb | 2 ++ app/views/context_menus/issues.html.erb | 2 +- app/views/issues/_list.html.erb | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb index bd6977503..3cb9c3a3b 100644 --- a/app/controllers/context_menus_controller.rb +++ b/app/controllers/context_menus_controller.rb @@ -43,6 +43,8 @@ class ContextMenusController < ApplicationController @priorities = IssuePriority.active.reverse @back = back_url + @columns = params[:c] + @options_by_custom_field = {} if @can[:edit] custom_fields = @issues.map(&:editable_custom_fields).reduce(:&).reject(&:multiple?).select {|field| field.format.bulk_edit_supported} diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb index 7919472af..f979cd0e2 100644 --- a/app/views/context_menus/issues.html.erb +++ b/app/views/context_menus/issues.html.erb @@ -134,7 +134,7 @@ <% end %> <% unless @issue %> -
  • <%= context_menu_link l(:button_filter), _project_issues_path(@project, :set_filter => 1, :status_id => "*", :issue_id => @issue_ids.join(",")), +
  • <%= context_menu_link l(:button_filter), _project_issues_path(@project, :set_filter => 1, :status_id => "*", :issue_id => @issue_ids.join(","), :c => @columns), :class => 'icon icon-list' %>
  • <% end %> diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb index d704a58bb..bbd69c4ce 100644 --- a/app/views/issues/_list.html.erb +++ b/app/views/issues/_list.html.erb @@ -3,6 +3,7 @@ <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> <%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %> +<%= query_columns_hidden_tags(query) %>
    -- 2.39.5