fix(task): don't try to return a project identifier if there is no project
This commit is contained in:
parent
7755b9cd49
commit
e66344c21e
@ -579,6 +579,11 @@ func getRemindersForTasks(s *xorm.Session, taskIDs []int64) (reminders []*TaskRe
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *Task) setIdentifier(project *Project) {
|
func (t *Task) setIdentifier(project *Project) {
|
||||||
|
if project == nil {
|
||||||
|
t.Identifier = "#" + strconv.FormatInt(t.Index, 10)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
t.Identifier = project.Identifier + "-" + strconv.FormatInt(t.Index, 10)
|
t.Identifier = project.Identifier + "-" + strconv.FormatInt(t.Index, 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user