报告人员问题
This commit is contained in:
parent
97288d4eb4
commit
b1fd7048fe
|
@ -61,7 +61,7 @@ class AppliedProjectController < ApplicationController
|
|||
@flag = 3
|
||||
else
|
||||
@flag = 4
|
||||
role = params[:member] == "member_manager" ? 3 : (params[:member] = "member_developer" ? 4 :5)
|
||||
role = params[:member] == "member_manager" ? 3 : (params[:member] == "member_developer" ? 4 :5)
|
||||
applied_project = AppliedProject.create(:user_id => User.current.id, :project_id => @project.id, :role => role)
|
||||
# 申请成功则给项目管理员发送邮件及发送消息
|
||||
Mailer.run.applied_project(applied_project)
|
||||
|
|
Loading…
Reference in New Issue