Added only check if we're about to close an issue when closing an issue in "changeStatus"

This commit is contained in:
kolaente 2018-01-24 23:50:26 +01:00 committed by Konrad
parent f837429858
commit 0ce2170031
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -613,7 +613,7 @@ func (issue *Issue) changeStatus(e *xorm.Session, doer *User, repo *Repository,
}
// Check for open dependencies
if isClosed { // only check if we're about to close an issue
if isClosed { // only check if we're about to close an issue, otherwise reopening an issue would fail when there are unsatisfied dependencies
noDeps, err := IssueNoDependenciesLeft(issue)
if err != nil {
return err