diff options
author | sillyguodong <33891828+sillyguodong@users.noreply.github.com> | 2023-04-27 00:54:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 12:54:17 -0400 |
commit | 8f57aa014b5642bcd33a6b22492df3c63f03d808 (patch) | |
tree | 10755b336f7f6150f3bec02ae4de5a581f1ef0fa /routers | |
parent | df9a62b5f9fdfd4f8719761c52d09533288a3b3a (diff) | |
download | gitea-8f57aa014b5642bcd33a6b22492df3c63f03d808.tar.gz gitea-8f57aa014b5642bcd33a6b22492df3c63f03d808.zip |
Alert error message if open dependencies are included in the issues that try to batch close (#24329)
fix #24185
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index bea35785bb..49ea4f2a1f 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -2689,7 +2689,7 @@ func UpdateIssueStatus(ctx *context.Context) { if err := issue_service.ChangeStatus(issue, ctx.Doer, "", isClosed); err != nil { if issues_model.IsErrDependenciesLeft(err) { ctx.JSON(http.StatusPreconditionFailed, map[string]interface{}{ - "error": "cannot close this issue because it still has open dependencies", + "error": ctx.Tr("repo.issues.dependency.issue_batch_close_blocked", issue.Index), }) return } |