Browse Source

Fix double decrement of issue counter

pull/306/head
Justin Nuß 11 years ago
parent
commit
70b0023b82
  1. 12
      models/action.go

12
models/action.go

@ -142,18 +142,6 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com
return err
}
issue.Repo, err = GetRepositoryById(issue.RepoId)
if err != nil {
return err
}
issue.Repo.NumClosedIssues++
if err = UpdateRepository(issue.Repo); err != nil {
return err
}
if err = ChangeMilestoneIssueStats(issue); err != nil {
return err
}

Loading…
Cancel
Save