mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 10:46:10 +01:00
The default is 0 if not defined, and that causes dupe index errors Backport of #21271
This commit is contained in:
parent
0e677d7b41
commit
cbebcc1c26
|
@ -412,6 +412,10 @@ func (g *GiteaLocalUploader) CreateIssues(issues ...*base.Issue) error {
|
|||
},
|
||||
}
|
||||
|
||||
if is.ForeignReference.ForeignIndex == "0" {
|
||||
is.ForeignReference.ForeignIndex = strconv.FormatInt(is.Index, 10)
|
||||
}
|
||||
|
||||
if err := g.remapUser(issue, &is); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue