We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1986269 commit f066bd2Copy full SHA for f066bd2
models/issue.go
@@ -699,8 +699,14 @@ func UpdateIssueCols(issue *Issue, cols ...string) error {
699
}
700
701
func (issue *Issue) changeStatus(e *xorm.Session, doer *User, isClosed bool) (err error) {
702
+ // Reload the issue
703
+ currentIssue, err := getIssueByID(e, issue.ID)
704
+ if err != nil {
705
+ return err
706
+ }
707
+
708
// Nothing should be performed if current status is same as target status
- if issue.IsClosed == isClosed {
709
+ if currentIssue.IsClosed == isClosed {
710
return nil
711
712
0 commit comments