Commit 0f73ca6a authored by jplang's avatar jplang
Browse files

Fixed: issue bulk edit view broken by r2726 (#3347).

git-svn-id: https://svn.redmine.org/redmine/trunk@2739 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 18bb29ce
......@@ -273,7 +273,7 @@ class IssuesController < ApplicationController
end
# Find potential statuses the user could be allowed to switch issues to
@available_statuses = Workflow.find(:all, :include => :new_status,
:conditions => {:role_id => current_role.id}).collect(&:new_status).compact.uniq.sort
:conditions => {:role_id => User.current.roles_for_project(@project).collect(&:id)}).collect(&:new_status).compact.uniq.sort
@custom_fields = @project.issue_custom_fields.select {|f| f.field_format == 'list'}
end
......
......@@ -831,6 +831,13 @@ class IssuesControllerTest < Test::Unit::TestCase
:content => notes
assert_tag :input, :attributes => { :name => 'time_entry[hours]', :value => "2z" }
end
def test_get_bulk_edit
@request.session[:user_id] = 2
get :bulk_edit, :ids => [1, 2]
assert_response :success
assert_template 'bulk_edit'
end
def test_bulk_edit
@request.session[:user_id] = 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment