diff --git a/pkg/models/project.go b/pkg/models/project.go index 71c5ab53e..44de667ad 100644 --- a/pkg/models/project.go +++ b/pkg/models/project.go @@ -991,7 +991,12 @@ func (p *Project) Create(s *xorm.Session, a web.Auth) (err error) { return } - return p.ReadOne(s, a) + fullProject, err := GetProjectSimpleByID(s, p.ID) + if err != nil { + return + } + + return fullProject.ReadOne(s, a) } func (p *Project) isDefaultProject(s *xorm.Session) (is bool, err error) {