##// END OF EJS Templates
Fixed: issue bulk edit view broken by r2726 (#3347)....
Jean-Philippe Lang -
r2640:e5ed2b0f73f3
parent child
Show More
@@ -273,7 +273,7 class IssuesController < ApplicationController
273 end
273 end
274 # Find potential statuses the user could be allowed to switch issues to
274 # Find potential statuses the user could be allowed to switch issues to
275 @available_statuses = Workflow.find(:all, :include => :new_status,
275 @available_statuses = Workflow.find(:all, :include => :new_status,
276 :conditions => {:role_id => current_role.id}).collect(&:new_status).compact.uniq.sort
276 :conditions => {:role_id => User.current.roles_for_project(@project).collect(&:id)}).collect(&:new_status).compact.uniq.sort
277 @custom_fields = @project.issue_custom_fields.select {|f| f.field_format == 'list'}
277 @custom_fields = @project.issue_custom_fields.select {|f| f.field_format == 'list'}
278 end
278 end
279
279
@@ -831,6 +831,13 class IssuesControllerTest < Test::Unit::TestCase
831 :content => notes
831 :content => notes
832 assert_tag :input, :attributes => { :name => 'time_entry[hours]', :value => "2z" }
832 assert_tag :input, :attributes => { :name => 'time_entry[hours]', :value => "2z" }
833 end
833 end
834
835 def test_get_bulk_edit
836 @request.session[:user_id] = 2
837 get :bulk_edit, :ids => [1, 2]
838 assert_response :success
839 assert_template 'bulk_edit'
840 end
834
841
835 def test_bulk_edit
842 def test_bulk_edit
836 @request.session[:user_id] = 2
843 @request.session[:user_id] = 2
General Comments 0
You need to be logged in to leave comments. Login now