mirror of
https://gitea.com/gitea/tea
synced 2024-11-23 00:12:05 +01:00
fix printing issue deadline (#388)
fixes #387 Reviewed-on: https://gitea.com/gitea/tea/pulls/388 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: Norwin <noerw@noreply.gitea.io> Co-committed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
parent
5b28a05eb7
commit
9201250f74
@ -101,6 +101,9 @@ func (x printableIssue) FormatField(field string) string {
|
|||||||
case "updated":
|
case "updated":
|
||||||
return FormatTime(x.Updated)
|
return FormatTime(x.Updated)
|
||||||
case "deadline":
|
case "deadline":
|
||||||
|
if x.Deadline == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
return FormatTime(*x.Deadline)
|
return FormatTime(*x.Deadline)
|
||||||
case "milestone":
|
case "milestone":
|
||||||
if x.Milestone != nil {
|
if x.Milestone != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user