mirror of
https://github.com/meineerde/redmine.git
synced 2026-04-08 00:41:45 +00:00
Filtering issues via context menu should not reset selected columns (#26836).
Patch by Vincent Robert. git-svn-id: http://svn.redmine.org/redmine/trunk@17955 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8d6ecfa068
commit
49efe66ff5
@ -45,6 +45,9 @@ class ContextMenusController < ApplicationController
|
|||||||
@priorities = IssuePriority.active.reverse
|
@priorities = IssuePriority.active.reverse
|
||||||
@back = back_url
|
@back = back_url
|
||||||
|
|
||||||
|
params = CGI.parse(@back)
|
||||||
|
@columns = params["c[]"]
|
||||||
|
|
||||||
@options_by_custom_field = {}
|
@options_by_custom_field = {}
|
||||||
if @can[:edit]
|
if @can[:edit]
|
||||||
custom_fields = @issues.map(&:editable_custom_fields).reduce(:&).reject(&:multiple?).select {|field| field.format.bulk_edit_supported}
|
custom_fields = @issues.map(&:editable_custom_fields).reduce(:&).reject(&:multiple?).select {|field| field.format.bulk_edit_supported}
|
||||||
|
|||||||
@ -134,7 +134,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% unless @issue %>
|
<% unless @issue %>
|
||||||
<li><%= context_menu_link l(:button_filter), _project_issues_path(@project, :set_filter => 1, :status_id => "*", :issue_id => @issue_ids.join(",")),
|
<li><%= 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' %></li>
|
:class => 'icon icon-list' %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user