报告人员问题

This commit is contained in:
huang 2016-07-29 22:58:24 +08:00
parent 97288d4eb4
commit b1fd7048fe
1 changed files with 1 additions and 1 deletions

View File

@ -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)