This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
#1821
fix bug
pull/2019/head
chenyifan01
3 years ago
parent
a35bb8ff8b
commit
e7965694dd
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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()
Write
Preview
Loading…
Cancel
Save