Skip to content

Commit f5fde0f

Browse files
author
Warren Buckley
authored
Merge pull request umbraco#5719 from umbraco/v8/bug/5700
Fixes Macro Rendered in Richtext Editor when not configured to do so
2 parents c12bdaa + a0966be commit f5fde0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Umbraco.Web/Editors/MacroRenderingController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private HttpResponseMessage GetMacroResultAsHtml(string macroAlias, int pageId,
108108

109109
//if it isn't supposed to be rendered in the editor then return an empty string
110110
//currently we cannot render a macro if the page doesn't yet exist
111-
if (pageId == -1 || publishedContent == null || !m.UseInEditor)
111+
if (pageId == -1 || publishedContent == null || m.DontRender)
112112
{
113113
var response = Request.CreateResponse();
114114
//need to create a specific content result formatted as HTML since this controller has been configured

0 commit comments

Comments
 (0)