aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/migrations/gitea_uploader.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go
index 5bf77e6332..83388391da 100644
--- a/services/migrations/gitea_uploader.go
+++ b/services/migrations/gitea_uploader.go
@@ -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
}