From a0966be565bc42916778977ed8c95abd5d1a5c58 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 25 Jun 2019 12:36:03 +0200 Subject: [PATCH] Fixes Macro Rendered in Richtext Editor when not configured to do so. #5700 --- src/Umbraco.Web/Editors/MacroRenderingController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Editors/MacroRenderingController.cs b/src/Umbraco.Web/Editors/MacroRenderingController.cs index a2bbfe1dfd..eab2d997b5 100644 --- a/src/Umbraco.Web/Editors/MacroRenderingController.cs +++ b/src/Umbraco.Web/Editors/MacroRenderingController.cs @@ -108,7 +108,7 @@ namespace Umbraco.Web.Editors //if it isn't supposed to be rendered in the editor then return an empty string //currently we cannot render a macro if the page doesn't yet exist - if (pageId == -1 || publishedContent == null || !m.UseInEditor) + if (pageId == -1 || publishedContent == null || m.DontRender) { var response = Request.CreateResponse(); //need to create a specific content result formatted as HTML since this controller has been configured