Mercurial > hg > soundsoftware-site
changeset 833:793a52eb8d32 cannam
Merge from branch "bug_352"
author | Chris Cannam |
---|---|
date | Wed, 01 Feb 2012 10:35:57 +0000 |
parents | f87006561e09 (current diff) 7614169e14ed (diff) |
children | 6f5c0ac92d72 7240e0419aac c7ef5a1ed2d3 |
files | |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controllers/projects_controller.rb Tue Jan 31 13:46:10 2012 +0000 +++ b/app/controllers/projects_controller.rb Wed Feb 01 10:35:57 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