修改新建项目BUG
This commit is contained in:
parent
78c8e2a20d
commit
715c988656
|
@ -145,7 +145,7 @@ class ProjectsController < ApplicationController
|
||||||
m = Member.new(:user => User.current, :roles => [r])
|
m = Member.new(:user => User.current, :roles => [r])
|
||||||
project = ProjectInfo.new(:user_id => User.current.id, :project_id => @project.id)
|
project = ProjectInfo.new(:user_id => User.current.id, :project_id => @project.id)
|
||||||
@project.members << m
|
@project.members << m
|
||||||
@projec.project_infos << project
|
@project.project_infos << project
|
||||||
end
|
end
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
|
|
Loading…
Reference in New Issue