Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@577 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-06-29 17:21:37 +00:00
parent f816d4f378
commit 87bad767c6
12 changed files with 84 additions and 41 deletions
+5 -10
View File
@@ -165,17 +165,12 @@ class ProjectsController < ApplicationController
# Add a new issue category to @project
def add_issue_category
if request.post?
@issue_category = @project.issue_categories.build(params[:issue_category])
if @issue_category.save
flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'settings', :tab => 'categories', :id => @project
else
settings
render :action => 'settings'
end
@category = @project.issue_categories.build(params[:category])
if request.post? and @category.save
flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'settings', :tab => 'categories', :id => @project
end
end
end
# Add a new version to @project
def add_version