Browse Source

#1821

fix bug
pull/2019/head
chenyifan01 3 years ago
parent
commit
e7965694dd
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      models/issue.go

+ 3
- 0
models/issue.go View File

@@ -779,6 +779,9 @@ func (issue *Issue) ChangeContent(doer *User, content string) (err error) {
func (issue *Issue) ChangeRef(doer *User, newRef string) (err error) {
oldRef := issue.Ref
issue.Ref = newRef
if oldRef == newRef {
return nil
}

sess := x.NewSession()
defer sess.Close()


Loading…
Cancel
Save