Mercurial > hg > soundsoftware-site
diff app/controllers/projects_controller.rb @ 831:7614169e14ed bug_352
fixes bug #352. This fix needs to be reviewd, because it changes directly the redmine core.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 31 Jan 2012 16:09:00 +0000 |
parents | dd33798e514d |
children | 5e80956cc792 |
line wrap: on
line diff
--- a/app/controllers/projects_controller.rb Wed Nov 23 16:10:31 2011 +0000 +++ b/app/controllers/projects_controller.rb Tue Jan 31 16:09:00 2012 +0000 @@ -89,6 +89,16 @@ @project = Project.new @project.safe_attributes = params[:project] + + # todo: luisf: this should be removed from here... + if params && params[:project] && !params[:project][:tag_list].nil? + new_tags = params[:project][:tag_list].to_s.downcase + + @project.tag_list = ActionController::Base.helpers.strip_tags(new_tags) + end + # end of code to be removed + + if validate_parent_id && @project.save @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id') # Add current user as a project member if he is not admin