From 264f895967f184bc508573263e1d8e15f25fb921 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 27 Feb 2018 19:14:04 +0100 Subject: [PATCH] Only check for open dependencies if they are enabled --- models/issue.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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