diff options
Diffstat (limited to 'models/pull.go')
-rw-r--r-- | models/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/pull.go b/models/pull.go index 8754c119f1..31e1af7e8c 100644 --- a/models/pull.go +++ b/models/pull.go @@ -425,7 +425,7 @@ func (pr *PullRequest) setMerged() (err error) { if err = pr.Issue.changeStatus(sess, pr.Merger, pr.Issue.Repo, true); err != nil { return fmt.Errorf("Issue.changeStatus: %v", err) } - if _, err = sess.Id(pr.ID).AllCols().Update(pr); err != nil { + if _, err = sess.Id(pr.ID).Cols("has_merged").Update(pr); err != nil { return fmt.Errorf("update pull request: %v", err) } |