Skip to content

Commit

Permalink
Fix new issue sqlite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig committed Sep 16, 2017
1 parent b616585 commit 8239ffc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,6 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
return err
}

UpdateIssueIndexer(opts.Issue.ID)

if len(opts.Attachments) > 0 {
attachments, err := getAttachmentsByUUIDs(e, opts.Attachments)
if err != nil {
Expand Down Expand Up @@ -952,6 +950,8 @@ func NewIssue(repo *Repository, issue *Issue, labelIDs []int64, uuids []string)
return fmt.Errorf("Commit: %v", err)
}

UpdateIssueIndexer(issue.ID)

if err = NotifyWatchers(&Action{
ActUserID: issue.Poster.ID,
ActUser: issue.Poster,
Expand Down
2 changes: 2 additions & 0 deletions models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,8 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str
return fmt.Errorf("Commit: %v", err)
}

UpdateIssueIndexer(pull.ID)

if err = NotifyWatchers(&Action{
ActUserID: pull.Poster.ID,
ActUser: pull.Poster,
Expand Down

0 comments on commit 8239ffc

Please sign in to comment.