diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-09 18:22:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-09 18:22:11 +0000 |
commit | 5e0c1cc5ce9e16f3b4d8d2066bc1c4023afdee78 (patch) | |
tree | 4814399d770b5f3fe3197841c3bcf9689ab0e149 /app/helpers | |
parent | de7c49c6ca79f87b697744688d57a07e7af17b4c (diff) | |
download | redmine-5e0c1cc5ce9e16f3b4d8d2066bc1c4023afdee78.tar.gz redmine-5e0c1cc5ce9e16f3b4d8d2066bc1c4023afdee78.zip |
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
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/context_menus_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/context_menus_helper.rb b/app/helpers/context_menus_helper.rb index 93ec40af9..f2575c913 100644 --- a/app/helpers/context_menus_helper.rb +++ b/app/helpers/context_menus_helper.rb @@ -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 |