fix: reset id before creating
(cherry picked from commit c252c8f0cd1c09a74b564e67a855cca4cd436585)
This commit is contained in:
@ -263,6 +263,7 @@ func (pv *ProjectView) Create(s *xorm.Session, a web.Auth) (err error) {
|
||||
}
|
||||
|
||||
func createProjectView(s *xorm.Session, p *ProjectView, a web.Auth, createBacklogBucket bool, addExistingTasksToView bool) (err error) {
|
||||
p.ID = 0
|
||||
_, err = s.Insert(p)
|
||||
if err != nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user