Index: app/views/issues/bulk_edit.html.erb =================================================================== --- app/views/issues/bulk_edit.html.erb (revision 15287) +++ app/views/issues/bulk_edit.html.erb (working copy) @@ -160,6 +160,14 @@

<% end %> +<% if @safe_attributes.include?('estimated_hours') %> +

+ + <%= text_field_tag 'issue[estimated_hours]', '', :value => @issue_params[:estimated_hours], :size => 10 %> + +

+<% end %> + <% if @safe_attributes.include?('done_ratio') && Issue.use_field_for_done_ratio? %>

Index: test/functional/issues_controller_test.rb =================================================================== --- test/functional/issues_controller_test.rb (revision 15287) +++ test/functional/issues_controller_test.rb (working copy) @@ -4032,6 +4032,15 @@ assert_equal [1, 3], parent.children.collect(&:id).sort end + def test_bulk_update_estimated_hours + @request.session[:user_id] = 2 + post :bulk_update, :ids => [1, 2], :issue => {:estimated_hours => 4.25} + + assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' + assert_equal 4.25, Issue.find(1).estimated_hours + assert_equal 4.25, Issue.find(2).estimated_hours + end + def test_bulk_update_custom_field @request.session[:user_id] = 2 # update issues priority