This commit is contained in:
kolaente 2021-03-21 22:34:31 +01:00
parent bc21a21622
commit cd5599a10d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -707,7 +707,7 @@ func addMoreInfoToTasks(s *xorm.Session, taskMap map[int64]*Task) (err error) {
return
}
func checkBucketAndTaskBelongToSameList(s *xorm.Session, fullTask *Task, bucket *Bucket) (err error) {
func checkBucketAndTaskBelongToSameList(fullTask *Task, bucket *Bucket) (err error) {
if fullTask.ListID != bucket.ListID {
return ErrBucketDoesNotBelongToList{
ListID: fullTask.ListID,
@ -803,7 +803,7 @@ func createTask(s *xorm.Session, t *Task, a web.Auth, updateAssignees bool) (err
}
// If there is a bucket set, make sure they belong to the same list as the task
err = checkBucketAndTaskBelongToSameList(s, t, bucket)
err = checkBucketAndTaskBelongToSameList(t, bucket)
if err != nil {
return
}
@ -945,7 +945,7 @@ func (t *Task) Update(s *xorm.Session, a web.Auth) (err error) {
}
// If there is a bucket set, make sure they belong to the same list as the task
err = checkBucketAndTaskBelongToSameList(s, t, bucket)
err = checkBucketAndTaskBelongToSameList(t, bucket)
if err != nil {
return
}