From 730cc560800bf0c523e9f6a2d804ad2ea6c7c1a9 Mon Sep 17 00:00:00 2001 From: Shiny Nematoda Date: Wed, 13 Mar 2024 14:11:49 +0000 Subject: [PATCH] [BUG] Display error message if doer is unable to fork - Backport of #2649 - Resolves #2504 (cherry picked from commit 773048afa122b57b8eace009f0604eaa382b5497) --- routers/web/repo/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index 05b3ddb67d..db3e6ee8e6 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -176,7 +176,7 @@ func getForkRepository(ctx *context.Context) *repo_model.Repository { ctx.Data["ContextUser"] = orgs[0] } else { ctx.Data["CanForkRepo"] = false - ctx.Flash.Error(ctx.Tr("repo.fork_no_valid_owners"), true) + ctx.RenderWithErr(ctx.Tr("repo.fork_no_valid_owners"), tplFork, nil) return nil }