Bulk-edit custom fields through context menu (#6296).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8824 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-09 18:22:11 +00:00
parent de7c49c6ca
commit 5e0c1cc5ce
6 changed files with 136 additions and 2 deletions
+7
View File
@@ -33,4 +33,11 @@ module ContextMenusHelper
end
link_to h(name), url, options
end
def bulk_update_custom_field_context_menu_link(field, text, value)
context_menu_link h(text),
{:controller => 'issues', :action => 'bulk_update', :ids => @issues.collect(&:id), :issue => {'custom_field_values' => {field.id => value}}, :back_url => @back},
:method => :post,
:selected => (@issue && @issue.custom_field_value(field) == value)
end
end