From 773048afa122b57b8eace009f0604eaa382b5497 Mon Sep 17 00:00:00 2001 From: Shiny Nematoda Date: Wed, 13 Mar 2024 14:11:49 +0000 Subject: [PATCH] fix #2501 --- 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 c93d342e6..8727f3d1e 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -186,7 +186,7 @@ func updateForkRepositoryInContext(ctx *context.Context, forkRepo *repo_model.Re 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 false }