Project

General

Profile

hook_controller_projects_new_after_save-r9299.patch

redmine patch : add hook after creating project - Sajin Andrei, 2012-04-17 18:53

View differences:

app/controllers/projects_controller.rb (working copy)
78 78
    @project.safe_attributes = params[:project]
79 79

  
80 80
    if validate_parent_id && @project.save
81
      call_hook(:controller_projects_new_after_save, { :params => params, :project => @project})
81 82
      @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id')
82 83
      # Add current user as a project member if he is not admin
83 84
      unless User.current.admin?
(2-2/2)