fixed a bug where xorm treid to insert something with an id wich already exist
This commit is contained in:
parent
bfc783d1d0
commit
6519c62ade
2 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ func (i *ListTask) Create(doer *User) (err error) {
|
|||
|
||||
i.CreatedByID = user.ID
|
||||
i.CreatedBy = user
|
||||
_, err = x.Insert(i)
|
||||
_, err = x.Cols("text","description","done","due_date_unix","reminder_unix","created_by_id","list_id","created","updated").Insert(i)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue