Skip to content

Commit 8239ffc

Browse files
committed
Fix new issue sqlite bug
1 parent b616585 commit 8239ffc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

models/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,6 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
912912
return err
913913
}
914914

915-
UpdateIssueIndexer(opts.Issue.ID)
916-
917915
if len(opts.Attachments) > 0 {
918916
attachments, err := getAttachmentsByUUIDs(e, opts.Attachments)
919917
if err != nil {
@@ -952,6 +950,8 @@ func NewIssue(repo *Repository, issue *Issue, labelIDs []int64, uuids []string)
952950
return fmt.Errorf("Commit: %v", err)
953951
}
954952

953+
UpdateIssueIndexer(issue.ID)
954+
955955
if err = NotifyWatchers(&Action{
956956
ActUserID: issue.Poster.ID,
957957
ActUser: issue.Poster,

models/pull.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str
640640
return fmt.Errorf("Commit: %v", err)
641641
}
642642

643+
UpdateIssueIndexer(pull.ID)
644+
643645
if err = NotifyWatchers(&Action{
644646
ActUserID: pull.Poster.ID,
645647
ActUser: pull.Poster,

0 commit comments

Comments
 (0)