diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 2035f3fb..1c99fc9b 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -201,7 +201,7 @@ module TodosHelper :_source_view => (@source_view.underscore.gsub(/\s+/,'_') rescue "")} url[:_tag_name] = @tag_name if @source_view == 'tag' - return link_to(t('todos.convert_to_project'), url, {:class => "icon_item_to_project", :id => "to_project_#{dom_id(todo)}"}) + link_to(t('todos.convert_to_project'), url, {:class => "icon_item_to_project", :id => dom_id(todo, "to_project")}) end def collapsed_notes_image(todo) diff --git a/test/helpers/todo_helpers_test.rb b/test/helpers/todo_helpers_test.rb index a800aca4..0e952a9d 100644 --- a/test/helpers/todo_helpers_test.rb +++ b/test/helpers/todo_helpers_test.rb @@ -19,4 +19,9 @@ class TodosHelpersTest < ActionView::TestCase html = remote_delete_dependency(todo, predecessor) assert_equal "\"Blank\"", html end + + test "remote_promote_to_project_menu_item" do + html = remote_promote_to_project_menu_item(todos(:call_bill)) + assert_equal "Make project", html + end end