fix(projects): don't fail to fetch a task if there's a broken subscription record associated to it
This commit is contained in:
parent
e66344c21e
commit
43ef5f98d8
@ -1716,5 +1716,9 @@ func (t *Task) ReadOne(s *xorm.Session, a web.Auth) (err error) {
|
|||||||
*t = *taskMap[t.ID]
|
*t = *taskMap[t.ID]
|
||||||
|
|
||||||
t.Subscription, err = GetSubscription(s, SubscriptionEntityTask, t.ID, a)
|
t.Subscription, err = GetSubscription(s, SubscriptionEntityTask, t.ID, a)
|
||||||
|
if err != nil && IsErrProjectDoesNotExist(err) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user