diff --git a/models/issue.go b/models/issue.go index 277ea6712..24c9e8a41 100644 --- a/models/issue.go +++ b/models/issue.go @@ -614,7 +614,8 @@ 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, otherwise reopening an issue would fail when there are unsatisfied dependencies + if isClosed && issue.Repo.IsDependenciesEnabled() { + // only check if dependencies are enabled and 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