Patch #212
Updated by Toshi MARUYAMA over 8 years ago
First of all, thanks for this great product! I had the problem of showing only the list of users involved in the new issue status rather than the whole list, so I have applied this little change. Probably could have be done in a better way :) <pre><code class="diff"> Index: issues_controller.rb =================================================================== --- issues_controller.rb (revision 359) +++ issues_controller.rb (working copy) @@ -105,7 +105,8 @@ flash[:notice] = l(:notice_locking_conflict) end end - @assignable_to = @project.members.find(:all, :include => :user).collect{ |m| m.user } + # @assignable_to = @project.members.find(:all, :include => :user).collect{ |m| m.user } + @assignable_to = Workflow.find(:all, :conditions => ["old_status_id = ?", @new_status]).collect {|w| w.role}.collect {|r| r.members}.flatten.collect {|m| m.user}.uniq end def destroy </code></pre>