diff options
author | Unknwon <u@gogs.io> | 2016-01-28 06:07:16 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-01-28 06:07:16 -0500 |
commit | 4deb87634370c33e4890db47bd64196cff0a05b9 (patch) | |
tree | dbb569668a5b156fb567d9de9e11ddef49d45cdb /models/pull.go | |
parent | 0617720c0cd432d3160fed3f514b81d2967cf9aa (diff) | |
download | gitea-4deb87634370c33e4890db47bd64196cff0a05b9.tar.gz gitea-4deb87634370c33e4890db47bd64196cff0a05b9.zip |
Minor fix for #2494
- Change tooltip size from mini to tiny in profile page
Diffstat (limited to 'models/pull.go')
-rw-r--r-- | models/pull.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/pull.go b/models/pull.go index 2fe7d1fe37..47d80473a0 100644 --- a/models/pull.go +++ b/models/pull.go @@ -525,11 +525,11 @@ func AddTestPullRequestTask(repoID int64, branch string) { } } -func ChangeUsernameInPullRequests(oldUserName, newUserName string) (error) { +func ChangeUsernameInPullRequests(oldUserName, newUserName string) error { pr := PullRequest{ - HeadUserName : newUserName, + HeadUserName: strings.ToLower(newUserName), } - _, err := x.Cols("head_user_name").Where("head_user_name = ?", oldUserName).Update(pr) + _, err := x.Cols("head_user_name").Where("head_user_name = ?", strings.ToLower(oldUserName)).Update(pr) return err } |