From cd437b7e1dd3f2772bd712f543ce33ee16a4eff6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 22 Dec 2012 10:00:00 +0000 Subject: [PATCH] Code cleanup, use named routes. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11067 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/context_menus_helper.rb | 2 +- app/views/context_menus/issues.html.erb | 59 ++++++++++++------------- config/routes.rb | 2 +- 3 files changed, 30 insertions(+), 33 deletions(-) diff --git a/app/helpers/context_menus_helper.rb b/app/helpers/context_menus_helper.rb index 940f4ce31..04be798bd 100644 --- a/app/helpers/context_menus_helper.rb +++ b/app/helpers/context_menus_helper.rb @@ -36,7 +36,7 @@ module ContextMenusHelper def bulk_update_custom_field_context_menu_link(field, text, value) context_menu_link h(text), - {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'custom_field_values' => {field.id => value}}, :back_url => @back}, + bulk_update_issues_path(:ids => @issue_ids, :issue => {'custom_field_values' => {field.id => value}}, :back_url => @back), :method => :post, :selected => (@issue && @issue.custom_field_value(field) == value) end diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb index b85b804e3..6b3fe4b9e 100644 --- a/app/views/context_menus/issues.html.erb +++ b/app/views/context_menus/issues.html.erb @@ -1,59 +1,59 @@