Only check for open dependencies if they are enabled
This commit is contained in:
parent
138a80b7fa
commit
264f895967
|
|
@ -614,7 +614,8 @@ func (issue *Issue) changeStatus(e *xorm.Session, doer *User, repo *Repository,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for open dependencies
|
// 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)
|
noDeps, err := IssueNoDependenciesLeft(issue)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user