@@ -273,7 +273,7 class IssuesController < ApplicationController | |||
|
273 | 273 | end |
|
274 | 274 | # Find potential statuses the user could be allowed to switch issues to |
|
275 | 275 | @available_statuses = Workflow.find(:all, :include => :new_status, |
|
276 |
:conditions => {:role_id => |
|
|
276 | :conditions => {:role_id => User.current.roles_for_project(@project).collect(&:id)}).collect(&:new_status).compact.uniq.sort | |
|
277 | 277 | @custom_fields = @project.issue_custom_fields.select {|f| f.field_format == 'list'} |
|
278 | 278 | end |
|
279 | 279 |
@@ -831,6 +831,13 class IssuesControllerTest < Test::Unit::TestCase | |||
|
831 | 831 | :content => notes |
|
832 | 832 | assert_tag :input, :attributes => { :name => 'time_entry[hours]', :value => "2z" } |
|
833 | 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 | 842 | def test_bulk_edit |
|
836 | 843 | @request.session[:user_id] = 2 |
General Comments 0
You need to be logged in to leave comments.
Login now